mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add trail to private pages
This commit is contained in:
parent
b4bd9f8cd3
commit
080ddb85e2
3 changed files with 1 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import { useRouter, usePathname } from "next/navigation";
|
|||
|
||||
export const AuthContext: any = React.createContext({});
|
||||
|
||||
const PRIVATE_ROUTES = ["/course/*/edit", "/settings*"];
|
||||
const PRIVATE_ROUTES = ["/course/*/edit", "/settings*", "/trail"];
|
||||
const NON_AUTHENTICATED_ROUTES = ["/login", "/register"];
|
||||
|
||||
export interface Auth {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue