[rewrite] Major changes to code - switched to postgres, added initial backend docker files

This commit is contained in:
Thastertyn committed 2025-03-10 18:02:57 +01:00
1 parent c7e20fc935
commit 71e916586e
52 files changed
+783 -537

No files matched your search

+12 -4
View File
@@ -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;
};