File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/RoleService.97466aa4.js
Back
import{a as s}from"./index.d09cba45.js";const r="https://ahg-hr-api.autohub.ph/api/v1/settings/roles",o={fetchRecords(t={}){return s.get(`${r}`,{params:t})},fetchRecord(t){return s.get(`${r}/${t}`)},async create(t){return s.post(`${r}`,t)},async update(t,e){return s.put(`${r}/${t}`,e)},async remove(t){return s.delete(`${r}/${t}`)},async savePermission(t){const e="https://ahg-hr-api.autohub.ph/api/v1/settings/save-role-permissions";return s.put(`${e}`,t)},async fetchRolePermission(t){const e="https://ahg-hr-api.autohub.ph/api/v1/settings/role-permissions";return s.get(`${e}/${t}`)},async fetchCompanyAccess(t){const e="https://ahg-hr-api.autohub.ph/api/v1/settings/all-role-company-access";return s.get(`${e}`,{params:{role_ids:t}})}};export{o as R};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings