2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-17 15:29:30 +00:00
RTL/routes/channels.js

12 lines
452 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();
router.get("/", ChannelsController.getChannels);
router.get("/:channelType", ChannelsController.getChannels);
router.post("/", ChannelsController.postChannel);
router.post("/transactions", ChannelsController.postTransactions);
router.delete("/:channelPoint", ChannelsController.closeChannel);
2018-09-15 01:31:01 +00:00
module.exports = router;