summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorあすぱる <84216737+AsPulse@users.noreply.github.com>2023-09-30 14:44:16 +0900
committerGitHub <noreply@github.com>2023-09-30 14:44:16 +0900
commit6840434661a4eaefc26deedf4d7b60c96356ffb4 (patch)
treea5e2d192ce7ceeb9258d06295f4e5e3341d7e612 /packages
parentfeat: AiScriptでホストのアドレスを参照できる定数 (#11924) (diff)
downloadsharkey-6840434661a4eaefc26deedf4d7b60c96356ffb4.tar.gz
sharkey-6840434661a4eaefc26deedf4d7b60c96356ffb4.tar.bz2
sharkey-6840434661a4eaefc26deedf4d7b60c96356ffb4.zip
change request.routerPath to requrest.routeOptions.url (#11935)
Diffstat (limited to 'packages')
-rw-r--r--packages/backend/src/server/web/ClientServerService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts
index 5c13c2c870..cf621f4579 100644
--- a/packages/backend/src/server/web/ClientServerService.ts
+++ b/packages/backend/src/server/web/ClientServerService.ts
@@ -188,7 +188,7 @@ export class ClientServerService {
// Authenticate
fastify.addHook('onRequest', async (request, reply) => {
// %71ueueとかでリクエストされたら困るため
- const url = decodeURI(request.routerPath);
+ const url = decodeURI(request.routeOptions.url);
if (url === bullBoardPath || url.startsWith(bullBoardPath + '/')) {
const token = request.cookies.token;
if (token == null) {