Browse Source

return version number from package.json

pull/7/head
rozetko 2 years ago
parent
commit
1c2b6936d6
  1. 6
      src/routes/status.ts

6
src/routes/status.ts

@ -1,10 +1,10 @@
import * as express from 'express'
async function deleteTask(req, res) {
res.status(200).send({ version: 123 });
async function getStatus(req, res) {
res.status(200).send({ version: process.env.npm_package_version });
}
export const router = express.Router();
router.get('/', deleteTask);
router.get('/', getStatus);

Loading…
Cancel
Save