From 4466015d27af0a5424953eb7f1502994d73027cf Mon Sep 17 00:00:00 2001 From: mguetlein Date: Fri, 28 Jan 2011 12:41:49 +0100 Subject: whitelist validation-non-resource-uris, minor fixes --- application.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application.rb') 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 / or // +OpenTox::Authorization.whitelist( /\/[0-9]+(\/?)$/, "GET", true ) + get '/examples/?' do LOGGER.info "list examples" -- cgit v1.2.3