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/lnd/channels.js

14 lines
631 B
JavaScript

const ChannelsController = require("../../controllers/lnd/channels");
6 years ago
const express = require("express");
const router = express.Router();
const authCheck = require("../authCheck");
6 years ago
router.get("/", authCheck, ChannelsController.getChannels);
router.post("/", authCheck, ChannelsController.postChannel);
router.get("/:channelType", authCheck, ChannelsController.getChannels);
router.post("/transactions", authCheck, ChannelsController.postTransactions);
router.delete("/:channelPoint", authCheck, ChannelsController.closeChannel);
router.post("/chanPolicy", authCheck, ChannelsController.postChanPolicy);
6 years ago
module.exports = router;