mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 22:54:18 +00:00
6f93e43978
update Signed-off-by: Raccoon <raccoon@hackmd.io>
13 lines
263 B
TypeScript
13 lines
263 B
TypeScript
import * as logger from '../logger'
|
|
import * as response from "../response";
|
|
|
|
export default function (req, res, next) {
|
|
try {
|
|
decodeURIComponent(req.path)
|
|
} catch (err) {
|
|
logger.error(err)
|
|
return response.errorBadRequest(req, res)
|
|
}
|
|
next()
|
|
}
|