diff --git a/task-manager/src/index.js b/task-manager/src/index.js index d5f5008..6d2e729 100644 --- a/task-manager/src/index.js +++ b/task-manager/src/index.js @@ -6,6 +6,18 @@ const taskRouter = require('./routers/task') const app = express() const port = process.env.PORT || 4200 +// app.use((req, res, next) => { +// if (req.method === 'GET') { +// res.send('GET requests are disabled') +// } else { +// next() +// } +// }) + +app.use((req, res, next) => { + res.status(503).send('Site is in maintenance mode').end() +}) + app.use(express.json()) app.use(userRouter) app.use(taskRouter)