Додана сторінка "історія служіння"

This commit is contained in:
2025-09-20 20:02:46 +03:00
parent ff393417a1
commit d75fb7ec3d
23 changed files with 3065 additions and 1078 deletions

View File

@@ -0,0 +1,26 @@
const historyApartmentService = require('../services/history.apartment.service');
class historyApartmentController {
async getList(req, res) {
const { limit } = req.query;
if (req.mode == 2) {
let result = await historyApartmentService.getList(limit);
if (result) {
return res
.status(200)
.send(result);
} else {
return res
.status(500)
.send({ message: 'Internal server error.' });
}
} else {
return res
.status(403)
.send({ message: 'The user does not have enough rights.' });
}
}
}
module.exports = new historyApartmentController();