Created
January 5, 2022 22:56
-
-
Save lobot/dddb4af9178afb6dcca6ac2813f48d5a to your computer and use it in GitHub Desktop.
sending-check-route-web-js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const router = express.Router(); | |
// Controller Import | |
const checkController = require("../controllers/check.controller"); | |
// Route Declaration | |
router.route("/") | |
.get(checkController.createCheck) | |
.post(checkController.createCheckPost); | |
router.route("/getCheck/:checkId") | |
.get(checkController.getACheck); | |
router.route("/getChecks") | |
.get(checkController.getChecks); | |
router.route("/cancelACheck/:checkId") | |
.get(checkController.cancelACheck) | |
// Route Export | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment