File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ def setup(options)
45
45
46
46
desc api_doc . delete ( :desc ) , api_doc
47
47
48
- instance_eval ( guard ) unless guard . nil?
49
-
50
48
output_path_definitions = proc do |combi_routes , endpoint |
51
49
output = endpoint . swagger_object (
52
50
target_class ,
@@ -64,6 +62,8 @@ def setup(options)
64
62
output
65
63
end
66
64
65
+ instance_eval ( guard ) unless guard . nil?
66
+
67
67
get mount_path do
68
68
header [ 'Access-Control-Allow-Origin' ] = '*'
69
69
header [ 'Access-Control-Request-Method' ] = '*'
@@ -79,6 +79,8 @@ def setup(options)
79
79
optional :locale , type : Symbol , desc : 'Locale of API documentation'
80
80
end
81
81
82
+ instance_eval ( guard ) unless guard . nil?
83
+
82
84
get "#{ mount_path } /:name" do
83
85
I18n . locale = params [ :locale ] || I18n . default_locale
84
86
You can’t perform that action at this time.
0 commit comments