Don't format JSON response
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -15,7 +15,7 @@ import { and, eq, sql } from 'drizzle-orm'
|
|||||||
import { verifyCodes } from './tables'
|
import { verifyCodes } from './tables'
|
||||||
|
|
||||||
export const jsonResponse = (data: any, status = 200) => {
|
export const jsonResponse = (data: any, status = 200) => {
|
||||||
return new Response(JSON.stringify(data, null, 2), {
|
return new Response(JSON.stringify(data), {
|
||||||
status,
|
status,
|
||||||
headers: { 'Content-Type': 'application/json' }
|
headers: { 'Content-Type': 'application/json' }
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user