Ride-The-Lightning-RTL/routes/lnd/channels.js
Shahana Farooqui ab54c44b73 Incomplete lazy load 8
Incomplete lazy load 8
2019-09-01 13:01:38 -04:00

14 lines
631 B
JavaScript

const ChannelsController = require("../../controllers/lnd/channels");
const express = require("express");
const router = express.Router();
const authCheck = require("../authCheck");
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);
module.exports = router;