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);
|
2019-01-19 23:47:56 +00:00
|
|
|
router.post("/chanPolicy", authCheck, ChannelsController.postChanPolicy);
|
2018-09-15 01:31:01 +00:00
|
|
|
|
|
|
|
module.exports = router;
|