mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import { AppVersion, GitSha } from '../EnvironmentConfig';
|
|
import Express, {
|
|
ExpressRequest,
|
|
ExpressResponse,
|
|
ExpressRouter,
|
|
} from '../Utils/Express';
|
|
|
|
const router: ExpressRouter = Express.getRouter();
|
|
|
|
router.get('/version', (_req: ExpressRequest, res: ExpressResponse) => {
|
|
res.send({ version: AppVersion, commit: GitSha });
|
|
});
|
|
|
|
export default router;
|