feat: Init project with frontend and rudimentary authentication
This commit is contained in:
6
legalconsenthub/server/api/auth/[...].ts
Normal file
6
legalconsenthub/server/api/auth/[...].ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { auth } from "../../utils/auth";
|
||||
import {H3Event} from "h3";
|
||||
|
||||
export default defineEventHandler((event: H3Event) => {
|
||||
return auth.handler(toWebRequest(event));
|
||||
});
|
||||
Reference in New Issue
Block a user