export const ServerRoute = createServerFileRoute('/api/auth/$').methods({
GET: ({ request }) => {
// Get the current tenant and pass it down or update the auth.handler to get the tenant from request
return auth.handler(request);
},
POST: ({ request }) => {
// Get the current tenant and pass it down or update the auth.handler to get the tenant from request
return auth.handler(request);
},
});
export const ServerRoute = createServerFileRoute('/api/auth/$').methods({
GET: ({ request }) => {
// Get the current tenant and pass it down or update the auth.handler to get the tenant from request
return auth.handler(request);
},
POST: ({ request }) => {
// Get the current tenant and pass it down or update the auth.handler to get the tenant from request
return auth.handler(request);
},
});