File
Blob: src/worker/api/public/app-config.ts
| 1 | import { PublicAppConfigResponse } from "@/contracts"; |
| 2 | import type { AppContext } from "@/worker/hono"; |
| 3 | import { validateAppEncryptionConfig } from "@/worker/security/secrets"; |
| 4 | |
| 5 | export const handleAppConfig = async (c: AppContext): Promise<Response> => { |
| 6 | await validateAppEncryptionConfig(c.env); |
| 7 | |
| 8 | return c.json(PublicAppConfigResponse.assertDecode({}), 200); |
| 9 | }; |