docat-org/docat

strip extra slash on versions

fliiiix opened this issue · 0 comments

If you add a extra slash at the end to post a version like this it fails with 404 without message on curl:

curl -X POST -F "file=@_site.zip" http://docs.company.com/api/project/2.0.0/

this one will work:

curl -X POST -F "file=@_site.zip" http://docs.company.com/api/project/2.0.0