Commit d07b8d17 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Require auth for non get requests to maven packages

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f933ace6
......@@ -12,6 +12,8 @@ module API
content_type :sha1, 'text/plain'
content_type :binary, 'application/octet-stream'
before { authenticate_non_get! }
helpers do
def extract_format(file_name)
name, _, format = file_name.rpartition('.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment