Skip to content

Commit

Permalink
change request.routerPath to requrest.routeOptions.url (#11935)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPulse authored Sep 30, 2023
1 parent 09dfb9b commit 6840434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6840434

Please sign in to comment.