Skip to content

Commit

Permalink
Alt route syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ceithir committed Nov 17, 2023
1 parent e8a0c89 commit 3af690d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,11 @@
resources :languages, except: [:show] do
resources :works
resources :admin_posts

member do
get :show, to: redirect("/languages/%{id}/works", status: 302)
end
end
get "/languages/:id", to: redirect("/languages/%{id}/works", status: 302)
resources :locales, except: :destroy

#### API ####
Expand Down

0 comments on commit 3af690d

Please sign in to comment.