2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-15 18:13:00 +00:00
RTL/routes/lnd/channels.js
Shahana Farooqui 9f676f7468 Dashboard with Pie Chart
Dashboard with Pie Chart
2019-12-04 18:14:34 -05:00

15 lines
708 B
JavaScript

const ChannelsController = require("../../controllers/lnd/channels");
const express = require("express");
const router = express.Router();
const authCheck = require("../authCheck");
router.get("/", authCheck, ChannelsController.getAllChannels);
router.get("/pending", authCheck, ChannelsController.getPendingChannels);
router.get("/closed", authCheck, ChannelsController.getClosedChannels);
router.post("/", authCheck, ChannelsController.postChannel);
router.post("/transactions", authCheck, ChannelsController.postTransactions);
router.delete("/:channelPoint", authCheck, ChannelsController.closeChannel);
router.post("/chanPolicy", authCheck, ChannelsController.postChanPolicy);
module.exports = router;