Fix "getAllPlanets" endpoint not returning code and message

This commit is contained in:
Aelita4 2024-06-18 16:11:26 +02:00
parent 2304ff48a3
commit 44fdb88ab2
Signed by: Aelita4
GPG Key ID: E44490C2025906C1
1 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ export const GET: APIRoute = async ({ request }) => {
}); });
return new Response( return new Response(
JSON.stringify(response) JSON.stringify({
code: 200,
message: "OK",
data: response
})
); );
} }