From 5ebdda01e8298c1763a694e380f71343cb19be29 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Fri, 24 Feb 2023 14:25:40 +0000 Subject: [PATCH] move routes --- packages/app/constants/publicRoutes.json | 5 --- packages/app/constants/routes.js | 47 ++++++++++++++++++++++++ packages/app/constants/routes.json | 38 ------------------- 3 files changed, 47 insertions(+), 43 deletions(-) delete mode 100755 packages/app/constants/publicRoutes.json create mode 100755 packages/app/constants/routes.js delete mode 100755 packages/app/constants/routes.json diff --git a/packages/app/constants/publicRoutes.json b/packages/app/constants/publicRoutes.json deleted file mode 100755 index e69493cd..00000000 --- a/packages/app/constants/publicRoutes.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - "/post/*", - "/live/*", - "/featured-event/*" -] \ No newline at end of file diff --git a/packages/app/constants/routes.js b/packages/app/constants/routes.js new file mode 100755 index 00000000..b495e88f --- /dev/null +++ b/packages/app/constants/routes.js @@ -0,0 +1,47 @@ +export default [ + { + path: "/login", + useLayout: "login", + public: true + }, + { + path: "/home/*", + useLayout: "default", + useTitle: "Home", + }, + { + path: "/posts/*", + useLayout: "default", + useTitle: "Posts", + }, + { + path: "/post/*", + useLayout: "default", + public: true + }, + { + path: "/live/*", + useLayout: "default", + public: true + }, + { + path: "/featured-event/*", + useLayout: "default", + public: true + }, + { + path: "/settings/*", + useLayout: "default", + centeredContent: true + }, + { + path: "/security/*", + useLayout: "default", + centeredContent: true + }, + { + path: "/music/creator", + useLayout: "default", + centeredContent: true + } +] \ No newline at end of file diff --git a/packages/app/constants/routes.json b/packages/app/constants/routes.json deleted file mode 100755 index e7b2b354..00000000 --- a/packages/app/constants/routes.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "id": "index", - "path": "/", - "title": "Index", - "icon": "Home", - "useLayout": "login", - "reachable": false - }, - { - "id": "login", - "path": "/login", - "title": "Login", - "icon": "Login", - "useLayout": "login" - }, - { - "id": "home", - "path": "/home", - "title": "Home", - "icon": "Home", - "reachable": true - }, - { - "id": "tv", - "path": "/tv", - "title": "Tv", - "icon": "Tv", - "reachable": true - }, - { - "id": "music", - "path": "/music", - "title": "Music", - "icon": "MdMusicVideo", - "reachable": true - } -] \ No newline at end of file