diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-28 12:41:49 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-28 12:41:49 +0100 |
commit | 4466015d27af0a5424953eb7f1502994d73027cf (patch) | |
tree | 15284419dfa5fe384fe74bdeda03c45650a68b53 /application.rb | |
parent | 9750da9cb7dc14309be38f98bc0b50c8bff9eb72 (diff) |
whitelist validation-non-resource-uris, minor fixes
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" |