fix(api): fix api endpoint logic #3

This commit is contained in:
shafin-r
2025-08-17 14:08:17 +06:00
parent ad46bf954e
commit 4f23f357e6
7 changed files with 87 additions and 69 deletions

View File

@ -28,7 +28,7 @@ export const login = async (
form: LoginForm,
setToken: SetTokenFn
): Promise<void> => {
const response = await fetch(`${API_URL}/auth/login`, {
const response = await fetch(`${API_URL}/auth/login/`, {
method: "POST",
headers: {
"Content-Type": "application/json",
@ -50,7 +50,7 @@ export const register = async (
form: RegisterForm,
setToken: SetTokenFn
): Promise<void> => {
const response = await fetch(`${API_URL}/auth/register`, {
const response = await fetch(`${API_URL}/auth/register/`, {
method: "POST",
headers: {
"Content-Type": "application/json",