Sha256: 798ad400b376b98b5d7982ee90668dce264541c8a05ad46e1a262b12343e58ed

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

# frozen_string_literal: true

LogsExplorer::Engine.routes.draw do
  get '/' => 'home#index', as: :home
  get '/watch' => 'logs#watch', as: :watch
  get '/watch/changes' => 'logs#changes', as: :changes
  get '/watch/download' => 'logs#download', as: :download

  get '/console' => 'console#index', as: :console
  post '/execute' => 'console#execute', as: :execute

  get '/call' => 'commands#call', as: :call

  %w[ansi_up.js.map perfect-scrollbar.min.js.map bulmaswatch.min.css.map ansi_up.js.map perfect-scrollbar.min.js.map bulmaswatch.min.css.map].each do |res|
    get "/#{res}", to: -> (env) do
      [200, { 'Content-Type' => 'text/plain' }, ['']]
    end
  end
end

Rails.application.routes.draw do
  begin
    mount LogsExplorer::Engine => LogsExplorer.mount_at, as: 'logs_explorer'
  rescue ArgumentError
    # already added
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logs_explorer-0.1.4 config/routes.rb
logs_explorer-0.1.3 config/routes.rb
logs_explorer-0.1.1 config/routes.rb