Skip to content

Instantly share code, notes, and snippets.

@lobot
Created Jan 5, 2022
Embed
What would you like to do?
sending-check-route-web-js
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