rozetko
2 years ago
1 changed files with 3 additions and 3 deletions
@ -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…
Reference in new issue