Created middleware which injects default short code length from config when a value was not explicitly provided

This commit is contained in:
Alejandro Celaya
2020-02-18 19:21:34 +01:00
parent 9372d1739a
commit 343ee04acb
5 changed files with 98 additions and 1 deletions

View File

@@ -243,6 +243,10 @@
"domain": {
"description": "The domain to which the short URL will be attached",
"type": "string"
},
"shortCodeLength": {
"description": "The length for generated short code. It has to be at least 4 and defaults to 5. It will be ignored when customSlug is provided",
"type": "number"
}
}
}