mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Add middleware/index.ts and remove default exports
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
6de6aa1d89
commit
e5961336b7
5 changed files with 10 additions and 4 deletions
|
@ -5,7 +5,7 @@ import { NextFunction, Request, Response } from 'express'
|
|||
|
||||
toobusy.maxLag(config.tooBusyLag)
|
||||
|
||||
export default function tooBusy (req: Request, res: Response, next: NextFunction): void {
|
||||
export function tooBusy (req: Request, res: Response, next: NextFunction): void {
|
||||
if (toobusy()) {
|
||||
errors.errorServiceUnavailable(res)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue