api_doc_server 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5f0df4a4bc61096e1c91918177d99ef021a980c
|
4
|
+
data.tar.gz: 9f781d62a6e6f0d1c8beefbc8c0c3ae3e1de2787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd3e5cee4e41c724653c7d93926919eadffbecb25435734d08dde985d7c2a565fdbee109198035b0d2d5c4de1510d95d356d65e43d9222f715e38ae26d9853b
|
7
|
+
data.tar.gz: 4e24aa199b6045d367a21a7b455fbb0fb6fbf4727123ddcbb21101d70941a233b19235219da7d0a22b76fa85def7da504738c50cc6c078a02d0597971bdbc232
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -44,7 +44,7 @@ Set admin username and password in an initializer:
|
|
44
44
|
# config/initializers/api_doc_server.rb
|
45
45
|
|
46
46
|
ApiDocServer.configure do |config|
|
47
|
-
config.authentication_proc = proc
|
47
|
+
config.authentication_proc = proc
|
48
48
|
authenticate_or_request_with_http_basic do |username, password|
|
49
49
|
User.find_by(name: username, password: password)
|
50
50
|
end
|
data/config/routes.rb
CHANGED
@@ -2,12 +2,7 @@
|
|
2
2
|
|
3
3
|
ApiDocServer::Engine.routes.draw do
|
4
4
|
scope format: false do
|
5
|
-
resources :docs, only: %i(index show)
|
6
|
-
collection do
|
7
|
-
get 'oauth2', to: 'docs#oauth2', format: false
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
5
|
+
resources :docs, path: '/', only: %i(index show)
|
11
6
|
root to: 'docs#index'
|
12
7
|
end
|
13
8
|
end
|