0f7af70b90
Updated Docker configuration, refactored middleware for improved error handling, and restructured account, order, plan, profile, and support modules, including their routes, services, and validations. Enhanced email processing queues and utilities for token generation, pagination, and response management to streamline the application architecture and enhance maintainability.
10 lines
292 B
JavaScript
10 lines
292 B
JavaScript
const manageResponse = (res, payload) => {
|
|
res.status(payload.statusCode).json({
|
|
success: payload.success,
|
|
message: payload.message,
|
|
data: payload.data || undefined || null,
|
|
meta: payload.meta || undefined || null
|
|
});
|
|
};
|
|
export default manageResponse;
|