initial commit
This commit is contained in:
13
src/app/api/health/route.ts
Normal file
13
src/app/api/health/route.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export async function GET() {
|
||||
const json = require("../../../../package.json");
|
||||
const response = {
|
||||
"status": "Healthy",
|
||||
"version": json.version
|
||||
}
|
||||
return new Response(JSON.stringify(response), {
|
||||
status: 200,
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user