shorten urls

This commit is contained in:
Gamebrary 2022-08-17 11:39:43 -07:00
parent 91e2c45d32
commit ac4a4ec8aa

View file

@ -152,7 +152,7 @@ const routes = [
}, },
{ {
name: 'game', name: 'game',
path: '/game/:id/:slug', path: '/g/:id/:slug',
component: GamePage, component: GamePage,
meta: { meta: {
public: true, public: true,
@ -160,7 +160,7 @@ const routes = [
}, },
{ {
name: 'game.news', name: 'game.news',
path: '/game/:id/:slug/news', path: '/g/:id/:slug/news',
component: GameNewsPage, component: GameNewsPage,
meta: { meta: {
public: true, public: true,
@ -168,17 +168,17 @@ const routes = [
}, },
{ {
name: 'game.notes', name: 'game.notes',
path: '/game/:id/:slug/notes', path: '/g/:id/:slug/notes',
component: GameNotesPage, component: GameNotesPage,
}, },
{ {
name: 'game.tags', name: 'game.tags',
path: '/game/:id/:slug/tags', path: '/g/:id/:slug/tags',
component: GameTagsPage, component: GameTagsPage,
}, },
{ {
name: 'game.progress', name: 'game.progress',
path: '/game/:id/:slug/progress', path: '/g/:id/:slug/progress',
component: GameProgressPage, component: GameProgressPage,
}, },
{ {
@ -240,7 +240,7 @@ const routes = [
// ], // ],
}, },
{ {
path: '/board/create', path: '/b/create',
name: 'create.board', name: 'create.board',
component: CreateBoardPage, component: CreateBoardPage,
meta: { meta: {
@ -248,28 +248,20 @@ const routes = [
} }
}, },
{ {
path: '/board/:id', path: '/b/:id',
name: 'board', name: 'board',
component: BoardPage, component: BoardPage,
}, },
{ {
path: '/board/:id/edit', path: '/b/:id/edit',
name: 'board.edit', name: 'board.edit',
component: EditBoardPage, component: EditBoardPage,
}, },
{ {
path: '/board/:id/edit/:listIndex', path: '/b/:id/edit/:listIndex',
name: 'board.list.edit', name: 'board.list.edit',
component: EditListPage, component: EditListPage,
}, },
{
path: '/b/:id',
name: 'public.board',
component: BoardPage,
meta: {
public: true,
},
},
{ {
path: '/:userName', path: '/:userName',
name: 'public.profile', name: 'public.profile',