init
This commit is contained in:
9
src/app/routes/api/test.ts
Normal file
9
src/app/routes/api/test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createServerFileRoute } from '@tanstack/react-start/server';
|
||||
import { superTokensRequestMiddleware } from '@/utils/supertokens';
|
||||
|
||||
// Simple test route for testing the auth middleware
|
||||
export const ServerRoute = createServerFileRoute('/api/test').middleware([superTokensRequestMiddleware]).methods({
|
||||
GET: () => {
|
||||
return new Response('Hello from the authenticated API!')
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user