init: init project

This commit is contained in:
2026-04-02 21:27:09 +06:00
commit 81f9801487
45 changed files with 1857 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Router } from "express";
import RequestValidator from "../../middlewares/request_validator";
import { profile_controller } from "./profile.controller";
import { profile_validations } from "./profile.validation";
import auth from "../../middlewares/auth";
import uploader from "../../middlewares/uploader";
const router = Router();
router.patch(
"/",
auth("USER"),
uploader.single("file"),
(req, res, next) => {
req.body = JSON.parse(req?.body?.data);
next();
},
RequestValidator(profile_validations.update_profile),
profile_controller.update_profile,
);
export default router;