mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 23:25:26 +00:00
Add status api
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import healthCheck from './healthCheck';
|
||||
|
||||
export {
|
||||
healthCheck
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import express, { Request, Response } from 'express';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get(
|
||||
'/status',
|
||||
(req: Request, res: Response) => {
|
||||
res.status(200).json({
|
||||
date: new Date(),
|
||||
message: 'Ok',
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user