Module: Legion::API::Routes::Workflow
- Defined in:
- lib/legion/api/workflow.rb
Defined Under Namespace
Modules: WorkflowHelpers
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/legion/api/workflow.rb', line 7 def self.registered(app) app.helpers WorkflowHelpers app.get '/api/relationships/graph' do require_data! graph = build_relationship_graph( chain_id: params[:chain_id]&.to_i, extension: params[:extension] ) json_response(graph) end end |