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.
RTL/routes/eclair/channels.js

13 lines
558 B
JavaScript

const ChannelsController = require("../../controllers/eclair/channels");
const express = require("express");
const router = express.Router();
const authCheck = require("../shared/authCheck");
router.get("/", authCheck, ChannelsController.getChannels);
router.get("/stats", authCheck, ChannelsController.getChannelStats);
router.post("/", authCheck, ChannelsController.openChannel);
router.post("/updateRelayFee", authCheck, ChannelsController.updateChannelRelayFee);
router.delete("/", authCheck, ChannelsController.closeChannel);
module.exports = router;