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:
parent
d9af895558
commit
4dc8bea040
21 changed files with 230 additions and 172 deletions
|
@ -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}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue