"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const Authnetication_1 = require("../../Middlewares/Authnetication");
const SubscriptionController_1 = require("../../controllers/Admin/SubscriptionController");
class SubscriptionRouter {
    constructor() {
        this.router = (0, express_1.Router)();
        this.post();
        this.get();
    }
    post() {
        this.router.post("/add-edit/:id?", Authnetication_1.default.admin, SubscriptionController_1.SubscriptionController.addEdit);
    }
    get() {
        this.router.get("/list", Authnetication_1.default.admin, SubscriptionController_1.SubscriptionController.list);
        this.router.get("/edit/:id", Authnetication_1.default.admin, SubscriptionController_1.SubscriptionController.edit);
        this.router.get("/status/:id", Authnetication_1.default.admin, SubscriptionController_1.SubscriptionController.statusChange);
        this.router.get("/view/:id", Authnetication_1.default.admin, SubscriptionController_1.SubscriptionController.view);
    }
}
exports.default = new SubscriptionRouter().router;
