Ride-The-Lightning-RTL/routes/invoices.js
ShahanaFarooqui 1681e60e31 Fixed Invoices Routes
Fixed Invoices Routes
2018-11-22 20:36:28 -05:00

8 lines
257 B
JavaScript

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