2019-09-01 13:01:38 -04:00
|
|
|
const invoicesController = require("../../controllers/lnd/invoices");
|
2018-11-22 20:36:28 -05:00
|
|
|
const express = require("express");
|
|
|
|
const router = express.Router();
|
2019-09-01 13:01:38 -04:00
|
|
|
const authCheck = require("../authCheck");
|
2018-11-22 20:36:28 -05:00
|
|
|
|
2019-01-01 11:26:51 -05:00
|
|
|
router.get("/", authCheck, invoicesController.listInvoices);
|
2019-01-08 22:04:34 -05:00
|
|
|
router.get("/:rHashStr", authCheck, invoicesController.getInvoice);
|
2019-01-01 11:26:51 -05:00
|
|
|
router.post("/", authCheck, invoicesController.addInvoice);
|
2018-11-22 20:36:28 -05:00
|
|
|
|
|
|
|
module.exports = router;
|