2019-09-02 04:11:37 +00:00
|
|
|
const ChannelsController = require("../../controllers/c-lightning/channels");
|
|
|
|
const express = require("express");
|
|
|
|
const router = express.Router();
|
2021-02-21 19:02:31 +00:00
|
|
|
const authCheck = require("../shared/authCheck");
|
2019-09-02 04:11:37 +00:00
|
|
|
|
2019-09-10 23:53:28 +00:00
|
|
|
router.get("/listChannels", authCheck, ChannelsController.listChannels);
|
|
|
|
router.post("/", authCheck, ChannelsController.openChannel);
|
|
|
|
router.post("/setChannelFee", authCheck, ChannelsController.setChannelFee);
|
|
|
|
router.delete("/:channelId", authCheck, ChannelsController.closeChannel);
|
|
|
|
|
2019-09-02 04:11:37 +00:00
|
|
|
router.get("/localremotebalance", authCheck, ChannelsController.getLocalRemoteBalance);
|
2019-09-10 23:53:28 +00:00
|
|
|
router.get("/listForwards", authCheck, ChannelsController.listForwards);
|
2019-09-02 04:11:37 +00:00
|
|
|
|
|
|
|
module.exports = router;
|