Skip to content

Commit

Permalink
url configured for images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayroid committed Dec 6, 2023
1 parent 6beff59 commit da814cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ const deleteUser = async (req, res) => {
const uploadProfilePic = async (req, res) => {
try {
// 0. SETTING DEFAULT URL
const defaultUrl = process.env.VITE_BACKEND_SERVER_URL + "/img/profilePic/";
const defaultUrl = process.env.VITE_BACKEND_SERVER_URL + "/api/img/profilePic/";

// 1. FETCHING DATA FROM REQUEST BODY
const userId = req.payload.userId;
Expand Down

0 comments on commit da814cf

Please sign in to comment.