1
0
mirror of https://github.com/covidpass-org/covidpass.git synced 2025-02-24 07:27:53 +01:00

15 lines
500 B
TypeScript
Raw Normal View History

import type {NextApiRequest, NextApiResponse} from "next";
type ConfigData = {
apiBaseUrl: string
verifierHost: string
2021-09-19 12:21:59 -04:00
hitcountHost: string
}
export default function handler(req: NextApiRequest, res: NextApiResponse<ConfigData>) {
// Return the API_BASE_URL. This Endpoint allows us to access the env Variable in client javascript
2021-09-19 12:21:59 -04:00
res.status(200).json({apiBaseUrl: process.env.API_BASE_URL, verifierHost: process.env.VERIFIER_HOST, hitcountHost: process.env.HITCOUNT_HOST})
}