mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-11 13:10:41 +00:00
9f676f7468
Dashboard with Pie Chart
15 lines
708 B
JavaScript
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;
|