mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
15 lines
365 B
TypeScript
15 lines
365 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;
|