diff --git a/client/app/doctor/@auth/default.tsx b/client/app/doctor/@auth/default.tsx new file mode 100644 index 00000000..213f4944 --- /dev/null +++ b/client/app/doctor/@auth/default.tsx @@ -0,0 +1,2 @@ +import Page from './page'; +export default Page; \ No newline at end of file diff --git a/client/middleware.ts b/client/middleware.ts index 73a1ab3e..a374f837 100644 --- a/client/middleware.ts +++ b/client/middleware.ts @@ -6,12 +6,12 @@ export function middleware(request: NextRequest) { if (pathname === '/admin') { return NextResponse.redirect(new URL('/admin/dashboard', request.url)); } - // if(pathname==='/doctor'){ - // return NextResponse.redirect(new URL("/doctor/slots")); - // } + if (pathname === '/doctor') { + return NextResponse.redirect(new URL("/doctor/slots", request.url)); + } return NextResponse.next(); } export const config = { - matcher: ['/admin/:path*'], + matcher: ['/admin/:path*', "/doctor/:path"], };