mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-24 06:47:57 +01:00
14 lines
663 B
JavaScript
14 lines
663 B
JavaScript
const ChannelsController = require("../../controllers/c-lightning/channels");
|
|
const express = require("express");
|
|
const router = express.Router();
|
|
const authCheck = require("../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;
|