bugfixing

This commit is contained in:
MuslemRahimi 2024-07-21 21:34:35 +02:00
parent 748948913e
commit 5a7b68362f

View File

@ -23,7 +23,7 @@ export const POST = async ({ request, locals }) => {
return new Response(JSON.stringify({ error: 'Invalid signature' }), {
status: 403,
headers: {
"Content-Type": "application/json","X-API-KEY": apiKey
"Content-Type": "application/json"
}
});
}
@ -72,7 +72,7 @@ export const POST = async ({ request, locals }) => {
return new Response(JSON.stringify({ message: 'Payment data received successfully' }), {
status: 200,
headers: {
"Content-Type": "application/json","X-API-KEY": apiKey
"Content-Type": "application/json"
}
});
} catch (error) {
@ -80,7 +80,7 @@ export const POST = async ({ request, locals }) => {
return new Response(JSON.stringify({ error: 'Internal server error' }), {
status: 500,
headers: {
"Content-Type": "application/json","X-API-KEY": apiKey
"Content-Type": "application/json"
}
});
}