soar_sc_routing 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/soar_sc_routing/router_meta.rb +2 -2
- data/lib/soar_sc_routing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9a7badfb60bc2acf2ed4b01bf6fe3521334521
|
4
|
+
data.tar.gz: c46ab8608538fa426a186f8fe93a6d89adf1f03a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05490515fd8d0a957f3c9ed661de46de887ffc4450c4925d924bfa06aefae51d0c126da06c89fc298f2089b9c5545b77f1b0b8128b7023c38cd6529eec15c7ad
|
7
|
+
data.tar.gz: a57628ff0900bd8b744cace067858ae5d0a0cfdad9e6eacede0e08649db7f30733cd621c553e7c10ea81a3b3ae601ac703e76af92712d26101b662f257bb0379
|
@@ -39,7 +39,7 @@ module SoarScRouting
|
|
39
39
|
resource = SoarScRouting::Resource.new(detail['description'], "#{detail['service_name']}", detail['method'].upcase, detail['params'])
|
40
40
|
add_resource_route(detail['path'], resource, interpret_secured(detail), interpret_authorized(detail)) do |request|
|
41
41
|
if detail['controller']
|
42
|
-
return delegate_to_controller_and_renderer(detail, startup_flow_id)
|
42
|
+
return delegate_to_controller_and_renderer(detail, startup_flow_id, request)
|
43
43
|
elsif detail['action']
|
44
44
|
http_code, headers, body = detail['action'].call(request)
|
45
45
|
[http_code, headers, [body]]
|
@@ -91,7 +91,7 @@ module SoarScRouting
|
|
91
91
|
raise ArgumentError.new("nfrs['authorization'] must be provided") if detail['nfrs']['authorization'].nil?
|
92
92
|
end
|
93
93
|
|
94
|
-
def delegate_to_controller_and_renderer(detail, startup_flow_id)
|
94
|
+
def delegate_to_controller_and_renderer(detail, startup_flow_id, request)
|
95
95
|
controller = nil
|
96
96
|
begin
|
97
97
|
controller = Object::const_get("SoarSc::Web::Controllers::#{detail['controller']}").new(@configuration)
|