Spaces:
Sleeping
Sleeping
add headers content type
Browse files
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({
|