blob: f1b7233045015aee6ac7a4b07e0b354d8b112386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
'use strict'
const toobusy = require('toobusy-js')
const response = require('../../response')
module.exports = function (req, res, next) {
if (toobusy()) {
response.errorServiceUnavailable(res)
} else {
next()
}
}
|