Skip to content
Snippets Groups Projects
Commit 3531a789 authored by Ignacio Bengoa Nion's avatar Ignacio Bengoa Nion
Browse files

Merge branch 'feature/Audit' of...

Merge branch 'feature/Audit' of https://gitlab.fing.edu.uy/julieta.dubra/repp_backend into feature/Audit
parents dd3a4b6d b8135b38
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,9 @@ export const validate = (token: string): number => {
return id;
};
const create = (user: any): any => {
instance.post('/', user)
.then((res) => res)
.catch((err) => {
throw (err);
});
const create = async (user: any) => {
const res = await instance.post('/', user);
return res.data;
};
const login = async (user: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment