feat: add trail to private pages

This commit is contained in:
swve 2023-04-10 19:00:00 +02:00
parent b4bd9f8cd3
commit 080ddb85e2
3 changed files with 1 additions and 4 deletions

View file

@ -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 {