You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
350 B

const express = require("express");
const route = express.Router();
const controller = require("../Controller/Subscriptions");
const { protectAtlogin } = require("../Middleware/auth");
route.route('/').get(protectAtlogin, controller.getAllSubscriptions)
route.route('/id').get(protectAtlogin, controller.getSubscriptionByID)
module.exports = route;