Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Home route

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