NatTuck / bottlenose-classic

Computer science university course management app; legacy version.
GNU Affero General Public License v3.0
18 stars 3 forks source link

Wrangle the Routes #170

Open nixpulvis opened 8 years ago

nixpulvis commented 8 years ago

There are currently a lot of routes in this application, many of which are not needed. I'd love to have more confidence in changing things knowing what routes I need to make work and which ones are useless.

                    Prefix Verb   URI Pattern                                                            Controller#Action
             user_password POST   /users/password(.:format)                                              devise/passwords#create
         new_user_password GET    /users/password/new(.:format)                                          devise/passwords#new
        edit_user_password GET    /users/password/edit(.:format)                                         devise/passwords#edit
                           PATCH  /users/password(.:format)                                              devise/passwords#update
                           PUT    /users/password(.:format)                                              devise/passwords#update
  cancel_user_registration GET    /users/cancel(.:format)                                                devise/registrations#cancel
         user_registration POST   /users(.:format)                                                       devise/registrations#create
     new_user_registration GET    /users/sign_up(.:format)                                               devise/registrations#new
    edit_user_registration GET    /users/edit(.:format)                                                  devise/registrations#edit
                           PATCH  /users(.:format)                                                       devise/registrations#update
                           PUT    /users(.:format)                                                       devise/registrations#update
                           DELETE /users(.:format)                                                       devise/registrations#destroy
          new_user_session GET    /users/sign_in(.:format)                                               devise/sessions#new
              user_session POST   /users/sign_in(.:format)                                               devise/sessions#create
      destroy_user_session DELETE /users/sign_out(.:format)                                              devise/sessions#destroy
                main_index GET    /main/index(.:format)                                                  main#index
                 main_auth GET    /main/auth(.:format)                                                   main#auth
          main_resend_auth POST   /main/resend_auth(.:format)                                            main#resend_auth
               main_logout GET    /main/logout(.:format)                                                 main#logout
                main_about GET    /main/about(.:format)                                                  main#about
                  settings GET    /settings(.:format)                                                    settings#index
             settings_save POST   /settings/save(.:format)                                               settings#save
                     users GET    /users(.:format)                                                       users#index
                           POST   /users(.:format)                                                       users#create
                  new_user GET    /users/new(.:format)                                                   users#new
                 edit_user GET    /users/:id/edit(.:format)                                              users#edit
                      user GET    /users/:id(.:format)                                                   users#show
                           PATCH  /users/:id(.:format)                                                   users#update
                           PUT    /users/:id(.:format)                                                   users#update
                           DELETE /users/:id(.:format)                                                   users#destroy
                           POST   /users/:id/impersonate(.:format)                                       users#impersonate
                     terms GET    /terms(.:format)                                                       terms#index
                           POST   /terms(.:format)                                                       terms#create
                  new_term GET    /terms/new(.:format)                                                   terms#new
                 edit_term GET    /terms/:id/edit(.:format)                                              terms#edit
                      term GET    /terms/:id(.:format)                                                   terms#show
                           PATCH  /terms/:id(.:format)                                                   terms#update
                           PUT    /terms/:id(.:format)                                                   terms#update
                           DELETE /terms/:id(.:format)                                                   terms#destroy
      course_registrations GET    /courses/:course_id/registrations(.:format)                            registrations#index
                           POST   /courses/:course_id/registrations(.:format)                            registrations#create
   new_course_registration GET    /courses/:course_id/registrations/new(.:format)                        registrations#new
  edit_course_registration GET    /courses/:course_id/registrations/:id/edit(.:format)                   registrations#edit
       course_registration GET    /courses/:course_id/registrations/:id(.:format)                        registrations#show
                           PATCH  /courses/:course_id/registrations/:id(.:format)                        registrations#update
                           PUT    /courses/:course_id/registrations/:id(.:format)                        registrations#update
                           DELETE /courses/:course_id/registrations/:id(.:format)                        registrations#destroy
       course_reg_requests GET    /courses/:course_id/reg_requests(.:format)                             reg_requests#index
                           POST   /courses/:course_id/reg_requests(.:format)                             reg_requests#create
    new_course_reg_request GET    /courses/:course_id/reg_requests/new(.:format)                         reg_requests#new
   edit_course_reg_request GET    /courses/:course_id/reg_requests/:id/edit(.:format)                    reg_requests#edit
        course_reg_request GET    /courses/:course_id/reg_requests/:id(.:format)                         reg_requests#show
                           PATCH  /courses/:course_id/reg_requests/:id(.:format)                         reg_requests#update
                           PUT    /courses/:course_id/reg_requests/:id(.:format)                         reg_requests#update
                           DELETE /courses/:course_id/reg_requests/:id(.:format)                         reg_requests#destroy
            course_buckets GET    /courses/:course_id/buckets(.:format)                                  buckets#index
                           POST   /courses/:course_id/buckets(.:format)                                  buckets#create
         new_course_bucket GET    /courses/:course_id/buckets/new(.:format)                              buckets#new
        edit_course_bucket GET    /courses/:course_id/buckets/:id/edit(.:format)                         buckets#edit
             course_bucket GET    /courses/:course_id/buckets/:id(.:format)                              buckets#show
                           PATCH  /courses/:course_id/buckets/:id(.:format)                              buckets#update
                           PUT    /courses/:course_id/buckets/:id(.:format)                              buckets#update
                           DELETE /courses/:course_id/buckets/:id(.:format)                              buckets#destroy
        course_assignments GET    /courses/:course_id/assignments(.:format)                              assignments#index
                           POST   /courses/:course_id/assignments(.:format)                              assignments#create
     new_course_assignment GET    /courses/:course_id/assignments/new(.:format)                          assignments#new
    edit_course_assignment GET    /courses/:course_id/assignments/:id/edit(.:format)                     assignments#edit
         course_assignment GET    /courses/:course_id/assignments/:id(.:format)                          assignments#show
                           PATCH  /courses/:course_id/assignments/:id(.:format)                          assignments#update
                           PUT    /courses/:course_id/assignments/:id(.:format)                          assignments#update
                           DELETE /courses/:course_id/assignments/:id(.:format)                          assignments#destroy
       course_team_divorce PATCH  /courses/:course_id/teams/:team_id/divorce(.:format)                   teams#divorce
              course_teams GET    /courses/:course_id/teams(.:format)                                    teams#index
                           POST   /courses/:course_id/teams(.:format)                                    teams#create
           new_course_team GET    /courses/:course_id/teams/new(.:format)                                teams#new
          edit_course_team GET    /courses/:course_id/teams/:id/edit(.:format)                           teams#edit
               course_team GET    /courses/:course_id/teams/:id(.:format)                                teams#show
                           PATCH  /courses/:course_id/teams/:id(.:format)                                teams#update
                           PUT    /courses/:course_id/teams/:id(.:format)                                teams#update
                           DELETE /courses/:course_id/teams/:id(.:format)                                teams#destroy
                   courses GET    /courses(.:format)                                                     courses#index
                           POST   /courses(.:format)                                                     courses#create
                new_course GET    /courses/new(.:format)                                                 courses#new
               edit_course GET    /courses/:id/edit(.:format)                                            courses#edit
                    course GET    /courses/:id(.:format)                                                 courses#show
                           PATCH  /courses/:id(.:format)                                                 courses#update
                           PUT    /courses/:id(.:format)                                                 courses#update
                           DELETE /courses/:id(.:format)                                                 courses#destroy
                           POST   /courses/:id/export_grades(.:format)                                   courses#export_grades
                           POST   /courses/:id/export_summary(.:format)                                  courses#export_summary
                           GET    /courses/:id/bulk_add(.:format)                                        courses#bulk_add
                           POST   /courses/:id/bulk_add(.:format)                                        courses#bulk_add
                           GET    /courses/:id/public(.:format)                                          courses#public
             registrations GET    /registrations(.:format)                                               registrations#index
                           POST   /registrations(.:format)                                               registrations#create
         edit_registration GET    /registrations/:id/edit(.:format)                                      registrations#edit
              registration GET    /registrations/:id(.:format)                                           registrations#show
                           PATCH  /registrations/:id(.:format)                                           registrations#update
                           PUT    /registrations/:id(.:format)                                           registrations#update
                           DELETE /registrations/:id(.:format)                                           registrations#destroy
                           GET    /registrations/:id/submissions_for_assignment/:assignment_id(.:format) registrations#submissions_for_assignment
                           POST   /registrations/:id/toggle_show(.:format)                               registrations#toggle_show
              reg_requests GET    /reg_requests(.:format)                                                reg_requests#index
                           POST   /reg_requests(.:format)                                                reg_requests#create
          edit_reg_request GET    /reg_requests/:id/edit(.:format)                                       reg_requests#edit
               reg_request GET    /reg_requests/:id(.:format)                                            reg_requests#show
                           PATCH  /reg_requests/:id(.:format)                                            reg_requests#update
                           PUT    /reg_requests/:id(.:format)                                            reg_requests#update
                           DELETE /reg_requests/:id(.:format)                                            reg_requests#destroy
    assignment_submissions GET    /assignments/:assignment_id/submissions(.:format)                      submissions#index
                           POST   /assignments/:assignment_id/submissions(.:format)                      submissions#create
 new_assignment_submission GET    /assignments/:assignment_id/submissions/new(.:format)                  submissions#new
edit_assignment_submission GET    /assignments/:assignment_id/submissions/:id/edit(.:format)             submissions#edit
     assignment_submission GET    /assignments/:assignment_id/submissions/:id(.:format)                  submissions#show
                           PATCH  /assignments/:assignment_id/submissions/:id(.:format)                  submissions#update
                           PUT    /assignments/:assignment_id/submissions/:id(.:format)                  submissions#update
               assignments GET    /assignments(.:format)                                                 assignments#index
                           POST   /assignments(.:format)                                                 assignments#create
            new_assignment GET    /assignments/new(.:format)                                             assignments#new
           edit_assignment GET    /assignments/:id/edit(.:format)                                        assignments#edit
                assignment GET    /assignments/:id(.:format)                                             assignments#show
                           PATCH  /assignments/:id(.:format)                                             assignments#update
                           PUT    /assignments/:id(.:format)                                             assignments#update
                           DELETE /assignments/:id(.:format)                                             assignments#destroy
                           GET    /assignments/:assignment_id/manual_grade(.:format)                     submissions#manual_grade
                           GET    /assignments/:id/tarball(.:format)                                     assignments#tarball
               submissions GET    /submissions(.:format)                                                 submissions#index
                           POST   /submissions(.:format)                                                 submissions#create
            new_submission GET    /submissions/new(.:format)                                             submissions#new
           edit_submission GET    /submissions/:id/edit(.:format)                                        submissions#edit
                submission GET    /submissions/:id(.:format)                                             submissions#show
                           PATCH  /submissions/:id(.:format)                                             submissions#update
                           PUT    /submissions/:id(.:format)                                             submissions#update
                      root GET    /                                                                      main#index