tomdesair / tus-java-server

Library to receive tus v1.0.0 file uploads in a Java server environment
MIT License
128 stars 60 forks source link

Support regex expression in upload URI #12

Closed tomdesair closed 6 years ago

tomdesair commented 6 years ago

In order to solve issue https://github.com/tomdesair/tus-java-server/issues/11, I've updated the code so that the upload URI is considered as a regex. This is a backwards compatible change.

That way, frameworks that use URL parameters in the upload endpoint can specify a regex upload URI. The example parameterized URL from the issue is /users/{userId}/files/upload. This then corresponds to the regex upload URI: /users/[0-9]+/files/upload.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.03%) to 96.533% when pulling b5b0caeca7c66661dfe02c55643cf08317a370ba on feature/upload-URI-regex-support into 25feaa5661f69bfe93e06230ccbc7754093973fd on master.