diff --git a/web/packages/shared/apps/constants.ts b/web/packages/shared/apps/constants.ts index e62e34eb2..3fcf0dcdd 100644 --- a/web/packages/shared/apps/constants.ts +++ b/web/packages/shared/apps/constants.ts @@ -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 = { + account: ACCOUNTS_PAGES.PASSKEYS, + albums: "/", + auth: AUTH_PAGES.AUTH, + photos: PHOTOS_PAGES.GALLERY, +}; + export enum APPS { PHOTOS = "PHOTOS", AUTH = "AUTH",