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
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
19 # See how all your routes lay out with 'rake routes'
21 # See http://guides.rubyonrails.org/routing.html
23 # The priority is based upon order of creation:
24 # first created -> highest priority.
25 root :to => 'assets#index'
28 post "set_session_params" => "application#set_session_params"
31 get "logout" => "sessions#destroy", :as => "logout"
32 get "login" => "sessions#new", :as => "login"
33 get "signup" => "users#new", :as => "signup"
36 resources :password_reset
39 post 'execute_order', to: 'positions#execute_order'
40 post 'cancel_order', to: 'positions#cancel_order'
41 get 'close', to: 'positions#close'
44 get 'cashflow' => 'cashflow#index'
47 get 'download', to: 'documents#download'
48 get 'delete_document', to: 'documents#delete_document'
50 resources :quoterecords