Align dashboard and installer flows with spec

This commit is contained in:
2026-05-08 19:02:50 +09:00
parent a10ca67210
commit 5ff4e20b5e
6 changed files with 117 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ import { fetchReleaseVersions } from '../../shared/mojang'
import {
createNewPack,
deletePacks,
listDashboardPacks,
loadAccounts,
loadPackDefinition,
loadRootManifest,
@@ -59,10 +60,10 @@ opRouter.post('/op/logout', requireAuth, (req, res) => {
opRouter.get('/op/dashboard', requireAuth, async (_req, res, next) => {
try {
const manifest = await loadRootManifest()
const packs = await listDashboardPacks()
res.render('op/dashboard', {
userId: _req.session.userId,
packs: manifest.packs
packs
})
} catch (error) {
next(error)