Skip to content

Commit

Permalink
lbijn
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Dec 20, 2024
1 parent 40cf1a1 commit 3079908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const DATABASE_URL = process.env.DATABASE_URL;
const CRONJOBS_ENABLED = process.env.CRONJOBS_ENABLED === "true";

const PUSH_NOTIFICATION_GCM_ID = process.env.PUSH_NOTIFICATION_GCM_ID;
const PUSH_NOTIFICATION_APN_KEY = process.env.PUSH_NOTIFICATION_APN_KEY.replace(/\\n/g, "\n");
const PUSH_NOTIFICATION_APN_KEY = process.env.PUSH_NOTIFICATION_APN_KEY?.replace(/\\n/g, "\n");
const PUSH_NOTIFICATION_APN_KEY_ID = process.env.PUSH_NOTIFICATION_APN_KEY_ID;
const PUSH_NOTIFICATION_APN_TEAM_ID = process.env.PUSH_NOTIFICATION_APN_TEAM_ID;

Expand Down
10 changes: 2 additions & 8 deletions api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ app.use(cors());

// kube probe
app.get("/healthz", async (req, res) => {
res.send(`Hello World`);
res.status(200).send();
});

app.get("/config", async (req, res) => {
res.send({ VERSION, MOBILE_VERSION, MOBILE_ANDROID_BUILD_NUMBER, MOBILE_IOS_BUILD_NUMBER });
});

// hello world
const now = new Date();
app.get("/", async (req, res) => {
res.send(`api MSP • ${now.toISOString()}`);
res.send({ VERSION, MOBILE_VERSION, MOBILE_ANDROID_BUILD_NUMBER, MOBILE_IOS_BUILD_NUMBER });
});

// Add header with API version to compare with client.
Expand Down

0 comments on commit 3079908

Please sign in to comment.