Sha256: a12d7a5864b8936317383b7c762170162374b96b42dd46c5f4e8b5b2b9baf9a4
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
Swat::Engine.routes.draw do # Root root to: 'application#index' # API namespace :api do resources :test_cases resources :revisions get 'revision', to: 'revisions#show' end # Helper Methods def level_paths (1..10).map do |index| (1..index).map{|k| ":level#{k}" }.join(?/) end end # Angular States namespace :info do level_paths.each do |path| get path, to: 'states#show' end end # Angular Pages namespace :pages do namespace :revisions do pages = [ :index, :show, :summary ] pages.each do |p| get p, to: p end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sw2at-ui-0.0.10 | config/routes.rb |
sw2at-ui-0.0.9 | config/routes.rb |