Sha256: f09ab3a5ca56fc44116c8d34729ee6e7beb8ddcaf3b1b026526a28c50cb70707
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
SweetStaging::Engine.routes.draw do get '/' => 'home#index', as: :home get '/watch' => 'logs#watch', as: :watch get '/watch/changes' => 'logs#changes', as: :changes ["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 SweetStaging::Engine => SweetStaging.mount_at, as: 'sweet_staging' rescue ArgumentError # already added # this code exist here because engine not includes routing automatically end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sweet_staging-0.1.0 | config/routes.rb |