mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 18:21:04 +03:30
55 lines
1.5 KiB
JavaScript
Vendored
55 lines
1.5 KiB
JavaScript
Vendored
const urls = {
|
|
storeTestType : "/TestTypes",
|
|
updateInfo : "/UpdateInfo",
|
|
getInfo : "/GetInfo",
|
|
login : "/login",
|
|
logout : "/logout",
|
|
storeMedicalCenter : "/MedicalCenters",
|
|
storeTestResult : "/TestResults",
|
|
listTestResult : "/TestResults",
|
|
listTestTypeName : "/TestTypes/ListNames",
|
|
getInputs : `/GetInputs`,
|
|
listOpertor : "/Users",
|
|
listMedicalCenter : function(page) {
|
|
return "/MedicalCenters?page=" + page;
|
|
},
|
|
listTestType : function(page) {
|
|
return "/TestTypes?page=" + page;
|
|
},
|
|
deleteTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
editTestType : function(id) {
|
|
return `/TestTypes/${id}/edit`;
|
|
},
|
|
updateTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
editTestResult : function(id) {
|
|
return `/TestResults/${id}/edit`;
|
|
},
|
|
updateMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
editMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}/edit`;
|
|
},
|
|
deleteMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
listOpertorMedicalCenter: function(id) {
|
|
return `/Users/MedicalCenter/${id}`;
|
|
},
|
|
changeStatusUser: function(userId) {
|
|
return `Users/ChangeStatus/${userId}`;
|
|
},
|
|
changeRoleUser: function(userId) {
|
|
return `Users/ChangeRole/${userId}`;
|
|
},
|
|
deleteUser: function(userId) {
|
|
return `Users/${userId}`;
|
|
},
|
|
|
|
|
|
};
|
|
export {urls}; |