使用routify路由

This commit is contained in:
zhengw
2025-09-08 09:14:31 +08:00
commit 2417f801ec
42 changed files with 3334 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { Router, createRouter } from '@roxi/routify'
import routes from './routes.default.js'
// remove previous routers to avoid bumping router names (/path => /1/path)
globalThis.__routify.reset()
export const router = createRouter({routes})
export { Router, routes }