feat(frontends): added vite and docusorus into the games
This commit is contained in:
11
frontend/src/routes/api/auth/$.ts
Normal file
11
frontend/src/routes/api/auth/$.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { auth } from '#/lib/auth'
|
||||
|
||||
export const Route = createFileRoute('/api/auth/$')({
|
||||
server: {
|
||||
handlers: {
|
||||
GET: ({ request }) => auth.handler(request),
|
||||
POST: ({ request }) => auth.handler(request),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user