diff options
| author | Dayana31 <[email protected]> | 2022-06-06 18:22:06 -0500 |
|---|---|---|
| committer | Dayana31 <[email protected]> | 2022-06-06 18:22:06 -0500 |
| commit | c10432bd66dfbf040662e9c8203956ac3614f4ca (patch) | |
| tree | 88c739cdb9650408458ee300ca03a7fc7746cb9b /front/odiparpack/app/api/camion.js | |
| parent | f3c1a8c5dcc3c482205f34332a9d673b35b4cfb0 (diff) | |
| parent | fab7d63333b86b9fe0f1c52d2c642b52bbf506c0 (diff) | |
| download | DP1_project-c10432bd66dfbf040662e9c8203956ac3614f4ca.tar.gz DP1_project-c10432bd66dfbf040662e9c8203956ac3614f4ca.tar.bz2 DP1_project-c10432bd66dfbf040662e9c8203956ac3614f4ca.zip | |
Merge branch 'gabshr' into dayana
Diffstat (limited to 'front/odiparpack/app/api/camion.js')
| -rw-r--r-- | front/odiparpack/app/api/camion.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/front/odiparpack/app/api/camion.js b/front/odiparpack/app/api/camion.js index 8229bbf..b368522 100644 --- a/front/odiparpack/app/api/camion.js +++ b/front/odiparpack/app/api/camion.js @@ -1,6 +1,21 @@ -import { apiGet } from '../utils/odipar/api'; +import { apiDelete, apiGet, apiPost, apiPut } from '../utils/odipar/api'; //GET APIS export const getCamionAPI = async () => { return await apiGet(`camion/`) } + +//POST APIS +export const insertarCamionAPI = async (data) => { + return await apiPost(`camion/`, data) +} + +//PUT APIS +export const editarCamionAPI = async (data) => { + return await apiPut(`camion/`, data) +} + +//DELETE APIS +export const eliminarCamionAPI = async (id) => { + return await apiDelete(`camion/${id}`) +} |
