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.
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;
|