Download src/modules/reception/reception.controller.js from moustafa7/gymco: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/moustafa7/gymco/resolve/main/src/modules/reception/reception.controller.js
- Command line
-
hf download hf://spaces/moustafa7/gymco/src/modules/reception/reception.controller.js
-
curl -L -o reception.controller.js https://huggingface.co/spaces/moustafa7/gymco/resolve/main/src/modules/reception/reception.controller.js
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'); | |
| }), | |
| }; | |