19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/ree_lib/packages/ree_roda/package/ree_roda/plugins/ree_routes.rb', line 19
def ree_routes(routes, swagger_title: "", swagger_description: "",
swagger_version: "", swagger_url: "", api_url: "")
@ree_routes ||= []
@ree_routes += routes
opts[:ree_routes_swagger_title] = swagger_title
opts[:ree_routes_swagger_description] = swagger_description
opts[:ree_routes_swagger_version] = swagger_version
opts[:ree_routes_swagger_url] = swagger_url
opts[:ree_routes_api_url] = api_url
opts[:ree_routes_swagger] = ReeRoda::BuildSwaggerFromRoutes.new.call(
@ree_routes,
opts[:ree_routes_swagger_title],
opts[:ree_routes_swagger_description],
opts[:ree_routes_swagger_version],
opts[:ree_routes_api_url]
)
build_routes_proc
nil
end
|