Refactor navigation structure and API routes
- Centralize user menu, sidebar items, and breadcrumb logic. - Map consistent API endpoints in `customerRoutes`. - Replace inline route definitions with reusable constants. - Refactor auth configuration file location. - Improve `<Link>` usage to replace static `<a>` elements. - Adjust sidebar and dropdown components to use dynamic navigation configurations.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import NextAuth from "next-auth";
|
||||
import {authOptions} from "@/lib/auth/authOptions";
|
||||
import {authOptions} from "@/lib/api/auth/authOptions";
|
||||
|
||||
const handler = NextAuth(authOptions);
|
||||
export {handler as GET, handler as POST};
|
||||
|
||||
Reference in New Issue
Block a user