diff options
Diffstat (limited to 'application.rb')
-rwxr-xr-x | application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application.rb b/application.rb index cf9621d..319a95d 100755 --- a/application.rb +++ b/application.rb @@ -13,6 +13,9 @@ end require "example.rb" +# this allows GET access to all validation URIS that do NOT end with /<number> or /<number>/ +OpenTox::Authorization.whitelist( /\/[0-9]+(\/?)$/, "GET", true ) + get '/examples/?' do LOGGER.info "list examples" |