- Add requireAuth middleware using Better Auth session validation - Apply to all game routes (start, answer) - Unauthenticated requests return 401
113 lines
3 KiB
TypeScript
113 lines
3 KiB
TypeScript
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
// This file was automatically generated by TanStack Router.
|
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as PlayRouteImport } from './routes/play'
|
|
import { Route as LoginRouteImport } from './routes/login'
|
|
import { Route as AboutRouteImport } from './routes/about'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
|
|
const PlayRoute = PlayRouteImport.update({
|
|
id: '/play',
|
|
path: '/play',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const LoginRoute = LoginRouteImport.update({
|
|
id: '/login',
|
|
path: '/login',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AboutRoute = AboutRouteImport.update({
|
|
id: '/about',
|
|
path: '/about',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/login': typeof LoginRoute
|
|
'/play': typeof PlayRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/login': typeof LoginRoute
|
|
'/play': typeof PlayRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/login': typeof LoginRoute
|
|
'/play': typeof PlayRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths: '/' | '/about' | '/login' | '/play'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to: '/' | '/about' | '/login' | '/play'
|
|
id: '__root__' | '/' | '/about' | '/login' | '/play'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
AboutRoute: typeof AboutRoute
|
|
LoginRoute: typeof LoginRoute
|
|
PlayRoute: typeof PlayRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/play': {
|
|
id: '/play'
|
|
path: '/play'
|
|
fullPath: '/play'
|
|
preLoaderRoute: typeof PlayRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/login': {
|
|
id: '/login'
|
|
path: '/login'
|
|
fullPath: '/login'
|
|
preLoaderRoute: typeof LoginRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/about': {
|
|
id: '/about'
|
|
path: '/about'
|
|
fullPath: '/about'
|
|
preLoaderRoute: typeof AboutRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
AboutRoute: AboutRoute,
|
|
LoginRoute: LoginRoute,
|
|
PlayRoute: PlayRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|