location controller updated with heading and created new models and controllers for remaining modules

This commit is contained in:
Shibi Chakkaravarthy
2026-05-04 20:57:03 +05:30
parent 1245e09111
commit 54d9508dc8
31 changed files with 2140 additions and 96 deletions
+1 -2
View File
@@ -20,7 +20,7 @@ export const createOrEditProfileController = async (req, res, next) => {
}
};
export const getProfileController = async (req, res, next) => {
export const getOwnProfileController = async (req, res, next) => {
try {
const { user } = res.locals;
const profile = await getProfileByQuery({ userId: user.id });
@@ -30,4 +30,3 @@ export const getProfileController = async (req, res, next) => {
next(error);
}
};