feat: complete day 9

This commit is contained in:
Ayobami
2025-07-15 19:04:00 +01:00
parent 7d8ed6d0ee
commit 825583e645
7 changed files with 83 additions and 20 deletions
+11
View File
@@ -0,0 +1,11 @@
const config = require("../config");
module.exports = function (req, res, next) {
if (config.maintenance) {
return res.status(503).json({
success: false,
error: "Service is under maintenance. Please try again later.",
});
}
next();
};