Files
docker-registry-aio/app/server/api/repositories/index.get.ts
T
ysj7705andCursor 0fd00bfa37 Add Docker Registry AIO with Nuxt Token Auth and admin UI.
Compose brings up registry:3 plus a Prisma/SQLite Nuxt app for docker login, ACL management, and image browsing with shadcn-vue.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 16:12:12 +09:00

17 lines
441 B
TypeScript

export default defineEventHandler(async (event) => {
await requireSession(event)
await ensureBootstrap()
try {
const repositories = await listRepositories()
return { repositories }
} catch (err: any) {
// Registry may be unreachable during local UI-only boot
if (err?.statusCode) throw err
throw createError({
statusCode: 502,
statusMessage: err?.message || 'Failed to reach registry',
})
}
})