feat(auth): enforce login route with global middleware

This commit is contained in:
Ruslan Bakiev
2026-02-23 12:01:03 +07:00
parent 5918a0593d
commit 43960d0374
4 changed files with 109 additions and 54 deletions

View File

@@ -0,0 +1,6 @@
import { getAuthContext } from "../../utils/auth";
export default defineEventHandler(async (event) => {
await getAuthContext(event);
return { authenticated: true };
});