summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/api/pedido.js
diff options
context:
space:
mode:
authorDayana31 <[email protected]>2022-06-01 16:43:23 -0500
committerDayana31 <[email protected]>2022-06-01 16:43:23 -0500
commitec0c33156713e51c64f2a9de4f932cd5507c654b (patch)
treecc46421686a49bbc0a0c343e460c13a21af1015d /front/odiparpack/app/api/pedido.js
parent6971201caffc2fccee5bfb12e88e5510c85eeb49 (diff)
parente9cb09907f8dbc9a4a64549a3ea4d1d8313e7c25 (diff)
downloadDP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.tar.gz
DP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.tar.bz2
DP1_project-ec0c33156713e51c64f2a9de4f932cd5507c654b.zip
Merge branch 'develop' into dayana
Diffstat (limited to 'front/odiparpack/app/api/pedido.js')
-rw-r--r--front/odiparpack/app/api/pedido.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/front/odiparpack/app/api/pedido.js b/front/odiparpack/app/api/pedido.js
new file mode 100644
index 0000000..63d6e2e
--- /dev/null
+++ b/front/odiparpack/app/api/pedido.js
@@ -0,0 +1,18 @@
+import axios from 'axios';
+import { apiGet } from '../utils/odipar/api';
+
+//GET APIS
+export const getPedidosAPI = async () => {
+ return await apiGet(`ayuda/`)
+}
+
+export function getAPi(){
+ axios.get(
+ `http://localhost:8083/ayuda/`, //TODO: check currentTimeStamp
+ {
+ headers: {
+ 'Content-type': 'application/json',
+ },
+ }
+ )
+} \ No newline at end of file