From 1d78ce25dfb0b80b94c57244fbba461556c30f19 Mon Sep 17 00:00:00 2001 From: NeKz Date: Thu, 13 Jun 2024 00:06:26 +0200 Subject: [PATCH] Make routes case sensitive --- src/server/app/Routes.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/server/app/Routes.ts b/src/server/app/Routes.ts index ef3398e..a3555a5 100644 --- a/src/server/app/Routes.ts +++ b/src/server/app/Routes.ts @@ -121,24 +121,28 @@ export const routes: Route[] = [ }, { 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, @@ -146,34 +150,40 @@ export const routes: Route[] = [ }, { 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', @@ -181,6 +191,7 @@ export const routes: Route[] = [ }, { path: '/status', + caseSensitive: true, Component: StatusView.Status, meta: StatusView.meta, loader: StatusView.loader,