diff --git a/server/middleware/auth.global.ts b/server/middleware/auth.global.ts index b406aeb..1d91e00 100644 --- a/server/middleware/auth.global.ts +++ b/server/middleware/auth.global.ts @@ -3,7 +3,7 @@ import { requireUserSession } from '../utils/auth' export default defineEventHandler(async (event) => { const url = getRequestURL(event) - if (!url.pathname.startsWith('/api')) { + if (!url.pathname.startsWith('/api/')) { return } if (url.pathname.startsWith('/api/service/')) {