feat: 添加应用列表和分类功能,支持搜索和过滤

This commit is contained in:
2026-01-02 17:34:54 +07:00
parent 04bbee2533
commit 00996d121b
8 changed files with 539 additions and 198 deletions

View File

@@ -0,0 +1,23 @@
import { getAppById } from '~/data/apps'
export default defineEventHandler((event) => {
const id = getRouterParam(event, 'id')
if (!id) {
throw createError({
statusCode: 400,
message: 'App ID is required',
})
}
const app = getAppById(id)
if (!app) {
throw createError({
statusCode: 404,
message: 'App not found',
})
}
return app
})