config/routes.rb in interpreter-0.0.3 vs config/routes.rb in interpreter-0.0.4
- old
+ new
@@ -1,5 +1,10 @@
Rails.application.routes.draw do
namespace :interpreter do
- resources :translations
+ resources :translations do
+ collection do
+ post 'search'
+ get '/group/:category' => 'translations#index', :as => 'category'
+ end
+ end
end
end