Skip to content

Instantly share code, notes, and snippets.

View superirale's full-sized avatar
🏠
Working from home

Usman Irale superirale

🏠
Working from home
View GitHub Profile
const BookingServices = require('../services/bookingServices');
exports.getAdminNotification = async (req, res, next) => {
try{
const bookedRoom = await BookingServices.getAdminNotification();
return res.status(200).json(bookedRoom);
}catch(err){
return res.status(500).json({ body: err.message });
}
};