Skip to content

Commit

Permalink
Make routes case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Jun 12, 2024
1 parent ee438f4 commit 1d78ce2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/server/app/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,66 +121,77 @@ export const routes: Route<RequestContext>[] = [
},
{
path: '/search',
caseSensitive: true,
Component: Search.Search,
meta: Search.meta,
loader: Search.loader,
},
{
path: '/profile/:username',
caseSensitive: true,
Component: ProfileView.Profile,
meta: ProfileView.meta,
loader: ProfileView.loader,
},
{
path: '/tokens',
caseSensitive: true,
Component: Tokens.Tokens,
meta: Tokens.meta,
loader: Tokens.loader,
},
{
path: '/tokens/:access_token_id',
caseSensitive: true,
Component: Token.Token,
meta: Token.meta,
loader: Token.loader,
action: Token.action,
},
{
path: '/tokens/:access_token_id/delete',
caseSensitive: true,
meta: Token.meta,
action: Token.actionDelete,
},
{
path: '/tokens/create',
caseSensitive: true,
meta: Token.meta,
Component: Token.Token,
loader: Token.loaderCreate,
},
{
path: '/tokens/new',
caseSensitive: true,
meta: Token.meta,
action: Token.actionNew,
},
{
path: '/queue/:share_id',
caseSensitive: true,
Component: VideoView.VideoView,
meta: VideoView.meta,
loader: VideoView.loader,
},
{
path: '/videos/:share_id',
caseSensitive: true,
Component: VideoView.VideoView,
meta: VideoView.meta,
loader: VideoView.loader,
},
{
path: '/privacy',
caseSensitive: true,
Component: Privacy.Privacy,
meta: () => ({
title: 'Privacy',
}),
},
{
path: '/status',
caseSensitive: true,
Component: StatusView.Status,
meta: StatusView.meta,
loader: StatusView.loader,
Expand Down

0 comments on commit 1d78ce2

Please sign in to comment.