sender page
This commit is contained in:
@@ -27,13 +27,14 @@ export async function POST(req: NextRequest) {
|
||||
email_notification,
|
||||
} = data
|
||||
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/account/create_sender/`, {
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/account/create_route/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${session.accessToken}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
owner_type: 'sender',
|
||||
transport,
|
||||
country_from,
|
||||
city_from,
|
||||
|
||||
Reference in New Issue
Block a user