merged initial codebase
[smr.git] / gui / config / routes.rb
blob4d10a1ddff6d5b59cef9243ac9ee6974c913f120
2 # This file is part of SMR.
4 # SMR is free software: you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
7 # version.
9 # SMR is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # SMR.  If not, see <http://www.gnu.org/licenses/>.
16 Smr::Application.routes.draw do
17   get "users/new"
19   # See how all your routes lay out with 'rake routes'
20   #
21   # See http://guides.rubyonrails.org/routing.html
22   #
23   # The priority is based upon order of creation:
24   # first created -> highest priority.
25   root :to => 'assets#index'
27   # date
28   post "set_session_params" => "application#set_session_params"
30   # authentication
31   get "logout" => "sessions#destroy", :as => "logout"
32   get "login" => "sessions#new", :as => "login"
33   get "signup" => "users#new", :as => "signup"
34   resources :users
35   resources :sessions
36   resources :password_reset
38   resources :positions
39   post 'execute_order', to: 'positions#execute_order'
40   post 'cancel_order', to: 'positions#cancel_order'
41   get 'close', to: 'positions#close'
43 #  resources :cashflow
44   get 'cashflow' => 'cashflow#index'
46   resources :documents
47   get 'download', to: 'documents#download'
48   get 'delete_document', to: 'documents#delete_document'
50   resources :quoterecords
51 end