Sha256: 77d0139fcaddbdd848c8622b6eb5acb3b94f4f25c86833e282cc340574927443
Contents?: true
Size: 820 Bytes
Versions: 13
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true module Karafka module Web module Ui module Controllers # Routing presentation controller class RoutingController < BaseController self.sortable_attributes = %w[ name active? ].freeze # Routing list def index @routes = Karafka::App.routes @routes.each do |consumer_group| refine(consumer_group.topics) end render end # Given route details # # @param topic_id [String] topic id def show(topic_id) @topic = Karafka::Routing::Router.find_by(id: topic_id) @topic || not_found!(topic_id) render end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems