MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / Status

Function Status

pages/api/status/v1/index.js:3–13  ·  view source on GitHub ↗
(request, response)

Source from the content-addressed store, hash-verified

1import app from '@/app';
2
3function Status(request, response) {
4 return response.status(200).json({
5 status: 'ok',
6 date: new Date(),
7 environment: process.env.NODE_ENV,
8 aws: {
9 region: process.env.AWS_REGION || 'local',
10 function_version: process.env.AWS_LAMBDA_FUNCTION_VERSION || 'local',
11 },
12 });
13}
14
15export default app().get(Status);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected