1
0
mirror of https://github.com/franjsco/trackmyd-api synced 2025-06-06 00:29:14 +02:00

add add/find query parameters in controller/routes

This commit is contained in:
Francesco Esposito
2019-02-20 09:39:54 +01:00
parent 88d8f40ee3
commit 721e72c460
2 changed files with 32 additions and 8 deletions

View File

@ -5,7 +5,8 @@ const router = express.Router();
router
.route('/devices')
.get(deviceController.index);
.get(deviceController.index)
.post(deviceController.add);
router
.route('/devices/:deviceId')