Skip to content

Commit

Permalink
Chore: Remove unused routes
Browse files Browse the repository at this point in the history
Because:
* These routes are no longer needed.
  • Loading branch information
KevinMulhern committed Sep 13, 2023
1 parent dba0431 commit 1ea7873
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@
get 'terms_of_use' => 'static_pages#terms_of_use'
get 'privacy-policy' => 'static_pages#privacy_policy'
get 'success_stories' => 'static_pages#success_stories'
get 'community_rules' => 'static_pages#community_rules'
get 'community_expectations' => 'static_pages#community_expectations'
get 'before_asking' => 'static_pages#before_asking'
get 'how_to_ask' => 'static_pages#how_to_ask'
get 'sitemap' => 'sitemap#index', defaults: { format: 'xml' }

namespace :guides do
Expand All @@ -72,7 +68,7 @@
end

# failure route if github information returns invalid
get '/auth/failure' => 'omniauth_callbacks#failure'
get '/auth/failure' => 'users/omniauth_callbacks#failure'
get 'dashboard' => 'users#show', as: :dashboard

namespace :users do
Expand All @@ -86,20 +82,18 @@
resource :preview, only: %i[show create] do
resource :share, only: %i[create], controller: 'previews/share'
end

resources :installation_guides, only: :index
end

namespace :courses do
resources :progress, only: %i[show]
end

resources :lessons, only: :show do
resources :project_submissions, controller: 'lessons/project_submissions'
resources :project_submissions, except: :show, controller: 'lessons/project_submissions'
resource :completion, only: %i[create destroy], controller: 'lessons/completions'
end

resources :project_submissions do
resources :project_submissions, only: :index do
resources :flags, only: %i[new create], controller: 'project_submissions/flags'
resource :like, only: %i[update], controller: 'project_submissions/likes'
end
Expand Down

0 comments on commit 1ea7873

Please sign in to comment.