init: init project
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import catchAsync from "../../utils/catch_async";
|
||||
import manageResponse from "../../utils/manage_response";
|
||||
import { profile_service } from "./profile.service";
|
||||
|
||||
const update_profile = catchAsync(async (req, res) => {
|
||||
const result = await profile_service.update_profile_into_db(req);
|
||||
manageResponse(res, {
|
||||
success: true,
|
||||
statusCode: 200,
|
||||
message: "profile updated successfully.",
|
||||
data: result,
|
||||
});
|
||||
});
|
||||
|
||||
export const profile_controller = {
|
||||
update_profile,
|
||||
};
|
||||
Reference in New Issue
Block a user