[rewrite] Major changes to code - switched to postgres, added initial backend docker files
This commit is contained in:
1 parent
c7e20fc935
commit
71e916586e
52 files changed
+783
-537
No files matched your search
+12
-4
@@ -8,9 +8,17 @@ export const registerUser = async (userData: {
|
||||
phone_number: string;
|
||||
password: string;
|
||||
}) => {
|
||||
const response = await axios.post(`${API_BASE_URL}/user/register`, {
|
||||
...userData,
|
||||
shop_id: 0 // 0 signifies a free account
|
||||
});
|
||||
const response = await axios.post(
|
||||
`${API_BASE_URL}/user/register`,
|
||||
{
|
||||
...userData,
|
||||
shop_id: 0
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
}
|
||||
);
|
||||
return response.data;
|
||||
};
|
||||
Reference in new issue
Block a user