1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

#58 made dialogs as routes

This commit is contained in:
Fedor Katurov 2021-03-29 14:11:39 +07:00
parent d9af895558
commit 4dc8bea040
21 changed files with 230 additions and 172 deletions

View file

@ -16,6 +16,8 @@ export const URLS = {
BACKEND_DOWN: '/oopsie',
},
NODE_URL: (id: INode['id'] | string) => `/post${id}`,
NODE_EDIT_URL: (id: INode['id'] | string) => `/post${id}/edit`,
NODE_CREATE_URL: (type: string) => `/`,
NODE_TAG_URL: (id: number, tagName: string) => `/post${id}/tag/${tagName}`,
PROFILE: (username: string) => `/~${username}`,
PROFILE_PAGE: (username: string) => `/profile/${username}`,