Skip to content

Commit

Permalink
chore: provide version in heartbeat response (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
birme authored Nov 17, 2022
1 parent 4128195 commit e43dcf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { IncomingHttpHeaders } from "http";
import path from "path";
import { CorruptorConfigMap } from "../manifests/utils/configs";

const { version } = require("../../package.json");

export const handleOptionsRequest = async (event: ALBEvent): Promise<ALBResult> => {
return {
statusCode: 204,
Expand Down Expand Up @@ -43,7 +45,7 @@ export const generateHeartbeatResponse = (): Promise<ALBResult> => {
"Access-Control-Allow-Headers": "Content-Type, Origin",
},
};
response.body = JSON.stringify({ message: "OK! 💚" });
response.body = JSON.stringify({ message: "OK! 💚", version });

return Promise.resolve(response);
};
Expand Down

0 comments on commit e43dcf4

Please sign in to comment.