mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
refacto: extract app urls to constant file
This commit is contained in:
30
src/constants/paths.ts
Normal file
30
src/constants/paths.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
const PATHS = {
|
||||
LOGIN: "/signin",
|
||||
HOME: "/",
|
||||
CATEGORY: {
|
||||
CREATE: "/category/create",
|
||||
EDIT: "/category/edit",
|
||||
REMOVE: "/category/remove",
|
||||
},
|
||||
LINK: {
|
||||
CREATE: "/link/create",
|
||||
EDIT: "/link/edit",
|
||||
REMOVE: "/link/remove",
|
||||
},
|
||||
API: {
|
||||
CATEGORY: {
|
||||
CREATE: "/category/create",
|
||||
EDIT: "/category/edit",
|
||||
REMOVE: "/category/remove",
|
||||
},
|
||||
LINK: {
|
||||
CREATE: "/link/create",
|
||||
EDIT: "/link/edit",
|
||||
REMOVE: "/link/remove",
|
||||
},
|
||||
},
|
||||
NOT_FOUND: "/404",
|
||||
SERVER_ERROR: "/505",
|
||||
};
|
||||
|
||||
export default PATHS;
|
||||
Reference in New Issue
Block a user