EducodeSales::Engine.routes.draw do root to: "home#index" get :statistics, to: "home#statistics" get :login, to: "sessions#login" get :logout, to: "sessions#logout" get :search_users, to: "home#search_users" get :search_teacher, to: "home#search_teacher" get :search_edu_teacher,to: "home#search_edu_teacher" get :search, to: "home#search" get :no_permission, to: "home#no_permission" resources :sessions do end resources :operation_reports resources :sale_reports do member do get :plans get :audit put :update_audit end end resources :key_person resources :operation_plans resources :follow_ups do member do get :teachers post :add_keys post :add_money get :money_plans put :update_money delete :delete_money end end resources :sale_trends do collection do get :trends post :sale_trends end end resources :businesses do collection do get :show_keys get :add_keys get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :edit_plan end member do post :add_follow_up get :unfinish_plans put :update_follow_up end end resources :places do end resources :plans do collection do get :operation get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly get :my_week get :my_month end end resources :operation_plans do collection do get :operation get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly end end resources :teachers do collection do get :add_keys get :search_new get :add_courses get :add_event get :show_class get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :course_list get :activities end end resources :activities do collection do get :show_teachers end end resources :sales do collection do get :trends post :sale_trends get :operations get :school get :xschool end end resources :commons resources :operations do collection do get :trends post :sale_trends end end resources :staffs do member do delete :disable get :follow_up_schools get :follow_up_departments end end resources :roles do member do put :view end end end