1
0
mirror of https://github.com/covidpass-org/covidpass.git synced 2025-02-17 04:00:41 +01:00
Hauke Tönjes 0aa4e32469
Transition to typescript
- Moved all logic to typescript
- Code cleanup
- Moved logic out of Form Component
2021-07-01 00:49:05 +02:00

12 lines
367 B
TypeScript

import type {NextApiRequest, NextApiResponse} from "next";
type ConfigData = {
apiBaseUrl: 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
res.status(200).json({apiBaseUrl: process.env.API_BASE_URL})
}