Sha256: 079f5ed6e7bb84c136813bde2b91f469121cc45ab99be7a2fc3d057bb5eb2407

Contents?: true

Size: 877 Bytes

Versions: 4

Compression:

Stored size: 877 Bytes

Contents

# frozen_string_literal: true

RailsDevtools::Engine.routes.draw do
  root to: "database_tables#index"
  get "*path.js.map", to: proc { [204, {}, [""]] }

  resources :image_assets, only: [:show, :index, :destroy]
  resources :database_tables, only: [:show, :index]
  resources :gems, only: [:show, :index]

  resources :routes, only: [:show, :index]
  namespace :routes do
    resources :route_path_inputs, only: :update
  end

  namespace :frontend do
    get "modules/*path", to: "modules#show", format: :js, constraints: ->(request) { request.path.end_with?(".js") }
  end

  get "host_app_images/*path", as: :host_app_image, to: "host_app_images#show",
                               constraints: lambda { |request|
                                 request.path.end_with?(*RailsDevtools::ImageAssets::ImageInfo::IMAGE_EXTENSIONS.to_a)
                               }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_devtools-0.1.3 config/routes.rb
rails_devtools-0.1.2 config/routes.rb
rails_devtools-0.1.1 config/routes.rb
rails_devtools-0.1.0 config/routes.rb