Skip to content

Commit

Permalink
feat: 미들웨어 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wo-o29 committed Oct 2, 2024
1 parent e6faa2a commit f9c0ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextResponse, type NextRequest } from "next/server";

const userOnlyUrlRegex = /^(\/mypage)/;
const userOnlyUrlRegex = /^(\/mypage|\/trip-planner)/;

export function middleware(request: NextRequest) {
const accessToken = request.cookies.get("accessToken");
Expand Down

0 comments on commit f9c0ebc

Please sign in to comment.