Skip to content
Snippets Groups Projects
Commit b8135b38 authored by Renzo Beux's avatar Renzo Beux
Browse files

xosas

parent 6209a4c3
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,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