diff --git a/src/routes/status.ts b/src/routes/status.ts index c7d9dc4..65016a5 100644 --- a/src/routes/status.ts +++ b/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);