Skip to content

Commit

Permalink
feat : admin event routes 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
keemsebin committed Mar 18, 2024
1 parent 07af4df commit 2511446
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 155 deletions.
4 changes: 1 addition & 3 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function middleware(req: NextRequest) {
const isClub = cookie?.includes(ROLE_TYPE.ROLE_CLUB);

const allowedPaths = {
[ROLE_TYPE.ROLE_ADMIN]: ['/club', '/notice/new', '/banner', '/event'],
[ROLE_TYPE.ROLE_ADMIN]: ['/club', '/notice/new', '/banner'],
[ROLE_TYPE.ROLE_CLUB]: ['/my-club'],
};

Expand Down Expand Up @@ -50,8 +50,6 @@ export const config = {
'/club/:path*',
'/report',
'/banner',
'/event',
'/event/:path*',
'/admin/:path*',
'/report/:path*',
],
Expand Down
96 changes: 0 additions & 96 deletions src/pages/admin/event/[id]/index.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions src/pages/admin/event/index.tsx

This file was deleted.

0 comments on commit 2511446

Please sign in to comment.