add market-page layouts, v1 for endpoints
This commit is contained in:
@@ -12,7 +12,7 @@ export async function logout() {
|
||||
const token = await getSessionData('token');
|
||||
|
||||
try {
|
||||
await fetch(`${API_BASE_URL}/api/auth/logout`, {
|
||||
await fetch(`${API_BASE_URL}v1/api/auth/logout`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -43,7 +43,7 @@ export async function authorization(
|
||||
|
||||
try {
|
||||
const { email, password } = validatedFields.data;
|
||||
const response = await fetch(`${API_BASE_URL}/api/auth/login`, {
|
||||
const response = await fetch(`${API_BASE_URL}v1/api/auth/login`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
email: email,
|
||||
@@ -100,7 +100,7 @@ export async function registration(
|
||||
|
||||
try {
|
||||
const { full_name, email, password } = validatedFields.data;
|
||||
const response = await fetch(`${API_BASE_URL}/api/auth/register`, {
|
||||
const response = await fetch(`${API_BASE_URL}v1/api/auth/register`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ fullName: full_name, email, password }),
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user