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

13 lines
549 B
JavaScript

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