Initial commit for new panel

This commit is contained in:
AmirReza Jamali
2025-09-09 11:20:26 +03:30
commit 1d4ccb3575
343 changed files with 20031 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
export const API_ENDPOINTS = {
POSTS: {
READ_ALL: "posts ",
},
USER: {
LOGIN: "profile/login",
LOGOUT: "profile/logout",
REFRESH_TOKEN: "profile/refresh-token",
ADMINS: "users",
ADMIN_DETAILS: (id: string) => `users/${id}`,
},
PROFILE: {
READ: "profile",
},
COMPANIES: {
READ_ALL: "companies",
CREATE: "companies",
UPDATE: (id: string) => `companies/${id}`,
DELETE: (id: string) => `companies/${id}`,
DETAILS: (id: string) => `companies/${id}`,
},
TENDERS: {
READ_ALL: "tenders",
CREATE: "tenders",
UPDATE: (id: string) => `tenders/${id}`,
DELETE: (id: string) => `tenders/${id}`,
DETAILS: (id: string) => `tenders/${id}`,
},
CUSTOMERS: {
READ_ALL: "customers",
CREATE: "customers",
UPDATE: (id: string) => `customers/${id}`,
DELETE: (id: string) => `customers/${id}`,
DETAILS: (id: string) => `customers/${id}`,
ASSIGN_COMPANY_TO_CUSTOMER: (id: string) =>
`customers/${id}/companies/assign`,
},
} as const;