You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
670 B
JavaScript
15 lines
670 B
JavaScript
const ChannelsController = require("../../controllers/c-lightning/channels");
|
|
const express = require("express");
|
|
const router = express.Router();
|
|
const authCheck = require("../shared/authCheck");
|
|
|
|
router.get("/listChannels", authCheck, ChannelsController.listChannels);
|
|
router.post("/", authCheck, ChannelsController.openChannel);
|
|
router.post("/setChannelFee", authCheck, ChannelsController.setChannelFee);
|
|
router.delete("/:channelId", authCheck, ChannelsController.closeChannel);
|
|
|
|
router.get("/localremotebalance", authCheck, ChannelsController.getLocalRemoteBalance);
|
|
router.get("/listForwards", authCheck, ChannelsController.listForwards);
|
|
|
|
module.exports = router;
|