Skip to content

Commit

Permalink
Remove info api
Browse files Browse the repository at this point in the history
  • Loading branch information
memochou1993 committed Oct 1, 2023
1 parent d01e1cd commit 6539be9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ app.use(express.json({
},
}));

app.get('/', (req, res) => {
app.get('/', async (req, res) => {
if (config.APP_URL) {
res.redirect(config.APP_URL);
return;
}
res.status(200).send({ status: 'OK' });
});

app.get('/info', async (req, res) => {
const currentVersion = getVersion();
const latestVersion = await fetchVersion();
res.status(200).send({ currentVersion, latestVersion });
Expand Down

0 comments on commit 6539be9

Please sign in to comment.