38 lines
882 B
Ruby
38 lines
882 B
Ruby
Rails.application.routes.draw do
|
|
|
|
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
|
|
resources :institutions do
|
|
resources :students
|
|
end
|
|
|
|
get "up" => "rails/health#show", as: :rails_health_check
|
|
get 'contact', to: 'institutions#contact'
|
|
get 'institutions', to: 'institutions#index'
|
|
get 'programs', to: 'programs#index'
|
|
get 'ziyaras', to: 'ziyaras#index'
|
|
get 'students', to: 'students#index'
|
|
get 'expenses', to: 'expenses#index'
|
|
|
|
|
|
root "institutions#index"
|
|
|
|
end
|