Add route and controller method for hardware details
This commit is contained in:
1 parent
334e8c32f6
commit
cf3305611f
2 files changed
+17
No files matched your search
@@ -104,6 +104,19 @@ class MonitorController {
|
||||
}
|
||||
};
|
||||
|
||||
getHardwareDetailsById = async (req, res, next) => {
|
||||
try {
|
||||
const monitor = await this.db.getHardwareDetailsById(req);
|
||||
return res.status(200).json({
|
||||
success: true,
|
||||
msg: successMessages.MONITOR_GET_BY_ID,
|
||||
data: monitor,
|
||||
});
|
||||
} catch (error) {
|
||||
next(handleError(error, SERVICE_NAME, "getHardwareDetailsById"));
|
||||
}
|
||||
};
|
||||
|
||||
getMonitorCertificate = async (req, res, next, fetchMonitorCertificate) => {
|
||||
try {
|
||||
await getCertificateParamValidation.validateAsync(req.params);
|
||||
|
||||
Reference in new issue
Block a user