Skip to content

Commit d6aadd3

Browse files
author
Valentina DOrazio
committed
fix: take all backoffice routes
1 parent 1dc75eb commit d6aadd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineMiddlewareRouter } from './router'
22
import { manageOrganizerAuth } from './utils';
33

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

88
if (!sessionCookie) {

0 commit comments

Comments
 (0)