Home route
This commit is contained in:
parent
6d289d73db
commit
b2fda16561
1 changed files with 14 additions and 2 deletions
|
@ -1,11 +1,23 @@
|
|||
import { ACCOUNTS_PAGES, AUTH_PAGES, PHOTOS_PAGES } from "../constants/pages";
|
||||
|
||||
/**
|
||||
* Arbitrary names that we used as keys for indexing various constants for each
|
||||
* of our apps.
|
||||
* Arbitrary names that we used as keys for indexing various constants
|
||||
* corresponding to our apps.
|
||||
*/
|
||||
export type AppName = "account" | "albums" | "auth" | "photos";
|
||||
|
||||
/**
|
||||
* The "home" route for each of our apps.
|
||||
*
|
||||
* This is where we redirect to, e.g, after successful authentication.
|
||||
*/
|
||||
export const appHomeRoute: Record<AppName, string> = {
|
||||
account: ACCOUNTS_PAGES.PASSKEYS,
|
||||
albums: "/",
|
||||
auth: AUTH_PAGES.AUTH,
|
||||
photos: PHOTOS_PAGES.GALLERY,
|
||||
};
|
||||
|
||||
export enum APPS {
|
||||
PHOTOS = "PHOTOS",
|
||||
AUTH = "AUTH",
|
||||
|
|
Loading…
Reference in a new issue