2020-07-07 17:57:15 +00:00
|
|
|
const ChannelsController = require("../../controllers/eclair/channels");
|
|
|
|
const express = require("express");
|
|
|
|
const router = express.Router();
|
2021-02-21 19:02:31 +00:00
|
|
|
const authCheck = require("../shared/authCheck");
|
2020-07-07 17:57:15 +00:00
|
|
|
|
|
|
|
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;
|