import express from "express";
import isAuth from "../middleware/isAuth";
import as SubscriptionController from "../controllers/SubscriptionController";
const subscriptionRoutes = express.Router();
subscriptionRoutes.post("/subscription", isAuth, SubscriptionController.createSubscription);
subscriptionRoutes.post("/subscription/create/webhook", SubscriptionController.createWebhook);
subscriptionRoutes.post("/subscription/webhook/:type?", SubscriptionController.webhook);
subscriptionRoutes.post("/subscription/webhook/pix/:type?", SubscriptionController.webhook);
export default subscriptionRoutes;