提交正式官网
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { isAdminSpaRoute, serveAdminSpa } from '~/server/utils/admin-spa'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const pathname = getRequestURL(event).pathname
|
||||
if (!isAdminSpaRoute(pathname)) return
|
||||
|
||||
return serveAdminSpa(event)
|
||||
})
|
||||
Reference in New Issue
Block a user