"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const Authnetication_1 = require("../../Middlewares/Authnetication");
const OrderController_1 = require("../../controllers/Admin/OrderController");
class OrderRouter {
    constructor() {
        this.router = (0, express_1.Router)();
        this.post();
        this.get();
    }
    post() {
        this.router.post("/assign-washer", Authnetication_1.default.admin, OrderController_1.OrderController.assignWasher);
        this.router.post("/status", Authnetication_1.default.admin, OrderController_1.OrderController.statusChange);
        this.router.post("/order-services", Authnetication_1.default.admin, OrderController_1.OrderController.orderServices);
    }
    get() {
        this.router.get("/list", Authnetication_1.default.admin, OrderController_1.OrderController.list);
        this.router.get("/view/:id", Authnetication_1.default.admin, OrderController_1.OrderController.view);
    }
}
exports.default = new OrderRouter().router;
