Fixes
This commit is contained in:
4 files changed
+40
-11
No files matched your search
@@ -1,4 +1,8 @@
|
||||
import { getDatabaseConnection, jsonResponse } from '../../../lib/util'
|
||||
import {
|
||||
generateSignature,
|
||||
getDatabaseConnection,
|
||||
jsonResponse
|
||||
} from '../../../lib/util'
|
||||
import { berryDashSplashTexts } from '../../../lib/tables'
|
||||
import { eq } from 'drizzle-orm'
|
||||
import { Context } from 'elysia'
|
||||
@@ -40,9 +44,13 @@ export const handler = async (context: Context) => {
|
||||
})
|
||||
.map(i => atob(i.content))
|
||||
|
||||
return new Response(data.join('\n'), {
|
||||
const body = data.join('\n')
|
||||
return new Response(body, {
|
||||
status: 200,
|
||||
headers: { 'Content-Type': 'text/plain' }
|
||||
headers: {
|
||||
'Content-Type': 'text/plain',
|
||||
'X-Signature': generateSignature(body)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
return jsonResponse(
|
||||
|
||||
Reference in new issue
Block a user