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