34 lines
687 B
Ruby
34 lines
687 B
Ruby
Rails.application.routes.draw do
|
|
devise_for :users
|
|
|
|
resources :students
|
|
resources :incomes do
|
|
collection do
|
|
get 'report'
|
|
end
|
|
end
|
|
get 'incomes/report', to: 'incomes#report', as: :income_report
|
|
resources :expenses do
|
|
collection do
|
|
get 'report'
|
|
end
|
|
end
|
|
get 'expenses/report', to: 'expenses#report', as: :expense_report
|
|
resources :exclusive_traditional_records
|
|
resources :ziyaras
|
|
resources :programs
|
|
resources :institutions do
|
|
resources :students
|
|
end
|
|
|
|
get "up" => "rails/health#show", as: :rails_health_check
|
|
get 'contact', to: 'institutions#contact'
|
|
|
|
|
|
root "institutions#index"
|
|
|
|
|
|
mount ShopNow::Engine, at: "/shop_now"
|
|
|
|
end
|