Sha256: 9fc2af0c67c14329db83ff63778d74e4a6fd6a19bd5795cb408decce945d94ef

Contents?: true

Size: 1.75 KB

Versions: 6

Compression:

Stored size: 1.75 KB

Contents

Rails.application.routes.draw do

  mount RailsAdmin::Engine => '/gbadmin', :as => 'rails_admin'

  devise_for :users,
    :path => "session", :controllers => {:registrations => "registrations"},
    :sign_out_via => [ :get, :delete ]
  # https://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-on-successful-sign-in
  # redirects defined in ApplicationController
  devise_scope :user do
    match '/session/welcome' => "registrations#index", :as => :user_welcome
    match '/session/login' => "registrations#login", :as => :user_login
    match '/session/logout' => "registrations#logout", :as => :user_logout
    match '/session/confirm' => "registrations#confirm", :as => :user_confirm
  end

  resources :token_authentications, :only => [:create, :destroy]

  resources :groups_users do
    get :register, :on => :collection
  end
  resources :users do
    get :find, :on => :collection
  end

  resources :topics_layers

  resources :layers

  resources :topics do
    get :query, :on => :collection
    get :legend, :on => :member
  end

  resources :maps

  match 'search/:rule' => 'search#index'
  match 'services/:rule.wsdl' => 'search#soap_wsdl', :as => :services_description
  match 'services/:rule' => 'search#soap', :as => :services

  match 'wms/access/:service' => 'wms#access', :as => :wms_access
  match 'wms/:service' => 'wms#show', :via => [:get, :post], :as => :wms

  match 'wfs/access/:service' => 'wfs#access', :as => :wfs_access
  match 'wfs/:service' => 'wfs#show', :as => :wfs

  match 'print/info.:format' => "print#info"
  match 'print/create' => "print#create", :via => :post
  match 'print/:id' => "print#show"

  match 'upload/gpx' => "upload#gpx", :via => :post

  match ':app' => 'apps#show'
  #root :to => "apps#show", :app => "gb41"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.9.5 config/routes.rb
gb_mapfish_appserver-0.9.4 config/routes.rb
gb_mapfish_appserver-0.9.3 config/routes.rb
gb_mapfish_appserver-0.9.2 config/routes.rb
gb_mapfish_appserver-0.9.1 config/routes.rb
gb_mapfish_appserver-0.9.0 config/routes.rb