Skip to content

Commit

Permalink
updated server structure according to mvc
Browse files Browse the repository at this point in the history
  • Loading branch information
VenketeshRushi committed Oct 29, 2023
1 parent 78e17af commit 271588d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module_user/controllers/userDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.addUserImage = async (req, res, next) => {
}

const url = "https://nike-clone-tcmw.onrender.com";
const uploadedFile = url + "/public/uploads/" + req.file.filename;
const uploadedFile = url + "/uploads/" + req.file.filename;

const checkProfilePic = await prisma.user.findUnique({
where: {
Expand Down
2 changes: 1 addition & 1 deletion module_user/routes/user.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ router.use(authorization);


// MULTER
const DIR = "./public/uploads";
const DIR = "./uploads";
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, DIR);
Expand Down
Binary file not shown.

0 comments on commit 271588d

Please sign in to comment.