mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-08 21:06:27 +02:00
api: fix validators
This commit is contained in:
parent
3ab6aefe05
commit
b91ff42bb8
2 changed files with 6 additions and 3 deletions
|
@ -52,7 +52,7 @@ module.exports = {
|
|||
body('url')
|
||||
.notEmpty() // eslint-disable-line snakecasejs/snakecasejs
|
||||
.bail()
|
||||
.isURL({require_protocol: true}) // eslint-disable-line snakecasejs/snakecasejs
|
||||
.isURL({require_host: false, require_protocol: true, protocols: ['http','https','file']}) // eslint-disable-line snakecasejs/snakecasejs
|
||||
|
||||
],
|
||||
async repo_add(req, res){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue