gymco / src /modules /reception /reception.controller.js
moustafa7's picture
Implement phase 1 foundation
20b4530
Raw History Blame Contribute Delete
369 Bytes
import { asyncHandler } from '../../common/middleware/asyncHandler.js';
import { ok } from '../../common/utils/response.js';
import { receptionRepository } from './reception.repository.js';
export const receptionController = {
dashboard: asyncHandler(async (req, res) => {
ok(res, await receptionRepository.dashboard(req.gymId), 'Reception dashboard');
}),
};