significant refactor
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
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