mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-09 13:10:44 +00:00
10 lines
319 B
JavaScript
10 lines
319 B
JavaScript
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);
|
|
|
|
module.exports = router;
|