This commit is contained in:
Lncvrt committed 2026-02-28 12:25:11 -07:00
1 parent a186243b26
commit 9600a8ea6b
4 files changed
+40 -11

No files matched your search

+11 -3
View File
@@ -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(