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!') }, })