Sha256: e27cc11d3b8edbc27f9504fd2978fe1d5896ecd1f68d2576177b0a08d6b09f72
Contents?: true
Size: 636 Bytes
Versions: 32
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true module Karafka module Web module Ui module Controllers # Routing presentation controller class Routing < Base # Routing list def index @routes = Karafka::App.routes respond end # Given route details # # @param topic_id [String] topic id def show(topic_id) @topic = Karafka::Routing::Router.find_by(id: topic_id) @topic || raise(::Karafka::Web::Errors::Ui::NotFoundError, topic_id) respond end end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems