From ac4a4ec8aa723c4239443058d511df0c97b4a724 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Wed, 17 Aug 2022 11:39:43 -0700 Subject: [PATCH] shorten urls --- src/routes.js | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/routes.js b/src/routes.js index 883fc255..112ae423 100644 --- a/src/routes.js +++ b/src/routes.js @@ -152,7 +152,7 @@ const routes = [ }, { name: 'game', - path: '/game/:id/:slug', + path: '/g/:id/:slug', component: GamePage, meta: { public: true, @@ -160,7 +160,7 @@ const routes = [ }, { name: 'game.news', - path: '/game/:id/:slug/news', + path: '/g/:id/:slug/news', component: GameNewsPage, meta: { public: true, @@ -168,17 +168,17 @@ const routes = [ }, { name: 'game.notes', - path: '/game/:id/:slug/notes', + path: '/g/:id/:slug/notes', component: GameNotesPage, }, { name: 'game.tags', - path: '/game/:id/:slug/tags', + path: '/g/:id/:slug/tags', component: GameTagsPage, }, { name: 'game.progress', - path: '/game/:id/:slug/progress', + path: '/g/:id/:slug/progress', component: GameProgressPage, }, { @@ -240,7 +240,7 @@ const routes = [ // ], }, { - path: '/board/create', + path: '/b/create', name: 'create.board', component: CreateBoardPage, meta: { @@ -248,28 +248,20 @@ const routes = [ } }, { - path: '/board/:id', + path: '/b/:id', name: 'board', component: BoardPage, }, { - path: '/board/:id/edit', + path: '/b/:id/edit', name: 'board.edit', component: EditBoardPage, }, { - path: '/board/:id/edit/:listIndex', + path: '/b/:id/edit/:listIndex', name: 'board.list.edit', component: EditListPage, }, - { - path: '/b/:id', - name: 'public.board', - component: BoardPage, - meta: { - public: true, - }, - }, { path: '/:userName', name: 'public.profile',