mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 03:38:17 +00:00
file upload settings
This commit is contained in:
63
apps/edr-freight-web/portal/src/constants/URLS.ts
Normal file
63
apps/edr-freight-web/portal/src/constants/URLS.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
export const URL_CONSTANTS = {
|
||||
AUTH: {
|
||||
LOGIN: "/auth/login",
|
||||
REGISTER: "/auth/register",
|
||||
REFRESH_TOKEN: "/auth/refresh-token",
|
||||
LOGOUT: "/auth/logout",
|
||||
PROFILE: "/auth/profile",
|
||||
},
|
||||
|
||||
USERS: {
|
||||
BASE: "/users",
|
||||
BY_ID: (id: string | number) => `/users/${id}`,
|
||||
},
|
||||
|
||||
ROLES: {
|
||||
BASE: "/roles",
|
||||
BY_ID: (id: string | number) => `/roles/${id}`,
|
||||
},
|
||||
|
||||
PERMISSIONS: {
|
||||
BASE: "/permissions",
|
||||
BY_ID: (id: string | number) => `/permissions/${id}`,
|
||||
},
|
||||
|
||||
PRODUCTS: {
|
||||
BASE: "/products",
|
||||
BY_ID: (id: string | number) => `/products/${id}`,
|
||||
},
|
||||
|
||||
ORDERS: {
|
||||
BASE: "/orders",
|
||||
BY_ID: (id: string | number) => `/orders/${id}`,
|
||||
},
|
||||
|
||||
FILES: {
|
||||
BASE: "/files",
|
||||
UPLOAD: "/files/upload",
|
||||
FILE_UPLOAD_SETTINGS: "/files/upload",
|
||||
DOWNLOAD: (id: string | number) => `/files/${id}/download`,
|
||||
DELETE: (id: string | number) => `/files/${id}`,
|
||||
BY_ID: (id: string | number) => `/files/${id}`,
|
||||
},
|
||||
|
||||
SETTINGS: {
|
||||
BASE: "/settings",
|
||||
GENERAL: "/settings/general",
|
||||
SECURITY: "/settings/security",
|
||||
NOTIFICATIONS: "/settings/notifications",
|
||||
},
|
||||
|
||||
CUSTOMERS: {
|
||||
BASE: "/customers",
|
||||
BY_ID: (id: string | number) => `/customers/${id}`,
|
||||
BOOKINGS: (id: string | number) => `/customers/${id}/bookings`,
|
||||
},
|
||||
|
||||
BOOKINGS: {
|
||||
BASE: "/bookings",
|
||||
BY_ID: (id: string | number) => `/bookings/${id}`,
|
||||
CANCEL: (id: string | number) => `/bookings/${id}/cancel`,
|
||||
CONFIRM: (id: string | number) => `/bookings/${id}/confirm`,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user