add proxy routes/controller
This commit is contained in:
1 parent
54690fc73c
commit
1b2d2887af
4 files changed
+97
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { IProxiesController } from "@/api/controllers/proxyController.js";
|
||||
import { Router } from "express";
|
||||
|
||||
export const createProxyRoutes = (tagController: IProxiesController): Router => {
|
||||
const router = Router();
|
||||
router.post("/", tagController.createProxy);
|
||||
router.get("/team", tagController.getProxiesByTeamId);
|
||||
router.get("/:id", tagController.getProxyById);
|
||||
router.delete("/:id", tagController.deleteProxy);
|
||||
router.patch("/:id", tagController.editProxy);
|
||||
return router;
|
||||
};
|
||||
Reference in new issue
Block a user