nsarrazin commited on
Commit
7e3696d
·
1 Parent(s): f6fbc81

add headers content type

Browse files
Files changed (1) hide show
  1. src/lib/server/api/index.ts +5 -1
src/lib/server/api/index.ts CHANGED
@@ -17,7 +17,11 @@ const prefix = `${base}/api/v2` as unknown as "";
17
 
18
  export const app = new Elysia({ prefix })
19
  .mapResponse(({ response }) => {
20
- return new Response(superjson.stringify(response));
 
 
 
 
21
  })
22
  .use(
23
  swagger({
 
17
 
18
  export const app = new Elysia({ prefix })
19
  .mapResponse(({ response }) => {
20
+ return new Response(superjson.stringify(response), {
21
+ headers: {
22
+ "Content-Type": "application/json",
23
+ },
24
+ });
25
  })
26
  .use(
27
  swagger({