mirror of
https://github.com/kyantech/Palmr.git
synced 2025-10-23 06:11:58 +00:00
refactor: format public paths in RedirectHandler for improved readability
- Reformatted the publicPaths array in the RedirectHandler component for better code clarity and maintainability.
This commit is contained in:
@@ -10,7 +10,15 @@ interface RedirectHandlerProps {
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const publicPaths = ["/login", "/forgot-password", "/reset-password", "/auth/callback", "/auth/oidc/callback", "/s/", "/r/"];
|
const publicPaths = [
|
||||||
|
"/login",
|
||||||
|
"/forgot-password",
|
||||||
|
"/reset-password",
|
||||||
|
"/auth/callback",
|
||||||
|
"/auth/oidc/callback",
|
||||||
|
"/s/",
|
||||||
|
"/r/",
|
||||||
|
];
|
||||||
const homePaths = ["/"];
|
const homePaths = ["/"];
|
||||||
|
|
||||||
export function RedirectHandler({ children }: RedirectHandlerProps) {
|
export function RedirectHandler({ children }: RedirectHandlerProps) {
|
||||||
|
Reference in New Issue
Block a user