2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-11 13:10:41 +00:00
RTL/routes/channels.js

14 lines
623 B
JavaScript
Raw Normal View History

2018-09-15 01:31:01 +00:00
const ChannelsController = require("../controllers/channels");
const express = require("express");
const router = express.Router();
2019-01-01 16:26:51 +00:00
const authCheck = require("./authCheck");
2018-09-15 01:31:01 +00:00
2019-01-01 16:26:51 +00:00
router.get("/", authCheck, ChannelsController.getChannels);
router.post("/", authCheck, ChannelsController.postChannel);
2019-01-08 03:09:21 +00:00
router.get("/:channelType", authCheck, ChannelsController.getChannels);
2019-01-01 16:26:51 +00:00
router.post("/transactions", authCheck, ChannelsController.postTransactions);
router.delete("/:channelPoint", authCheck, ChannelsController.closeChannel);
router.post("/chanPolicy", authCheck, ChannelsController.postChanPolicy);
2018-09-15 01:31:01 +00:00
module.exports = router;