19 lines
No EOL
504 B
TypeScript
Executable file
19 lines
No EOL
504 B
TypeScript
Executable file
import { Router } from "express";
|
|
import { authenticateStaff } from "@/src/middleware/staff-auth";
|
|
import productRouter from "@/src/apis/admin-apis/apis/product.router"
|
|
import tagRouter from "@/src/apis/admin-apis/apis/tag.router"
|
|
|
|
const router = Router();
|
|
|
|
// Apply staff authentication to all admin routes
|
|
router.use(authenticateStaff);
|
|
|
|
// Product routes
|
|
router.use("/products", productRouter);
|
|
|
|
// Tag routes
|
|
router.use("/product-tags", tagRouter);
|
|
|
|
const avRouter = router;
|
|
|
|
export default avRouter; |