Skip to content

Commit

Permalink
fix: take all backoffice routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentina DOrazio committed Aug 6, 2024
1 parent 6e34325 commit e7b1cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineMiddlewareRouter } from './router'
import { manageOrganizerAuth } from './utils';

export const onRequest = defineMiddlewareRouter({
'/backoffice': (context, next) => {
'/backoffice*': (context, next) => {
const sessionCookie = context.cookies.get("session")?.value;

if (!sessionCookie) {
Expand Down

0 comments on commit e7b1cf5

Please sign in to comment.