2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-17 15:29:30 +00:00
RTL/routes/c-lightning/channels.js

15 lines
670 B
JavaScript
Raw Normal View History

2019-09-02 04:11:37 +00:00
const ChannelsController = require("../../controllers/c-lightning/channels");
const express = require("express");
const router = express.Router();
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;