Class: Karafka::Web::Pro::Ui::Controllers::RoutingController
- Inherits:
-
BaseController
- Object
- Ui::Controllers::BaseController
- BaseController
- Karafka::Web::Pro::Ui::Controllers::RoutingController
- Defined in:
- lib/karafka/web/pro/ui/controllers/routing_controller.rb
Overview
Routing details - same as in OSS
Constant Summary
Constants inherited from Ui::Controllers::BaseController
Ui::Controllers::BaseController::Models
Instance Method Summary collapse
-
#index ⇒ Object
Routing list.
-
#show(topic_id) ⇒ Object
Given route details.
Methods inherited from Ui::Controllers::BaseController
Constructor Details
This class inherits a constructor from Karafka::Web::Ui::Controllers::BaseController
Instance Method Details
#index ⇒ Object
Routing list
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/karafka/web/pro/ui/controllers/routing_controller.rb', line 27 def index detect_patterns_routes @routes = Karafka::App.routes @routes.each do |consumer_group| refine(consumer_group.topics) end render end |
#show(topic_id) ⇒ Object
Given route details
42 43 44 45 46 47 48 49 50 |
# File 'lib/karafka/web/pro/ui/controllers/routing_controller.rb', line 42 def show(topic_id) detect_patterns_routes @topic = Karafka::Routing::Router.find_by(id: topic_id) @topic || not_found!(topic_id) render end |