Ride-The-Lightning-RTL/routes/invoices.js
2019-01-08 22:04:34 -05:00

10 lines
389 B
JavaScript

const invoicesController = require("../controllers/invoices");
const express = require("express");
const router = express.Router();
const authCheck = require("./authCheck");
router.get("/", authCheck, invoicesController.listInvoices);
router.get("/:rHashStr", authCheck, invoicesController.getInvoice);
router.post("/", authCheck, invoicesController.addInvoice);
module.exports = router;