f090_magic_strings_refactoring #35
16
src/routes/index.ts
Normal file
16
src/routes/index.ts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
export const ROUTE_NAMES = {
|
||||||
|
ROOT: '/',
|
||||||
|
// (angemeldet)
|
||||||
|
LIST: '/list',
|
||||||
|
UPLOAD: '/upload',
|
||||||
|
USERMGMT: '/user-management',
|
||||||
|
// (token-based)
|
||||||
|
VORGANG: (vorgangToken) => `/list/${vorgangToken}`,
|
||||||
|
CRIME: (vorgangToken, tatort) => `/view/${vorgangToken}/${tatort}`
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export const API_ROUTES = {
|
||||||
|
LIST: '/api/list',
|
||||||
|
VORGANG: (vorgangToken: string) => `/api/list/${vorgangToken}`,
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user