test/rails-app/config/routes.rb in trailblazer-endpoint-0.0.4 vs test/rails-app/config/routes.rb in trailblazer-endpoint-0.0.5
- old
+ new
@@ -1,6 +1,11 @@
Rails.application.routes.draw do
- # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
+ # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
resources :songs
- post "update_with_user", to: "songs#update_with_user"
- post "create_with_custom_handlers", to: "songs#create_with_custom_handlers"
+ post "/songs/create_with_options", to: "songs#create_with_options"
+ post "/songs/create_with_or", to: "songs#create_with_or"
+
+ post "/v1/songs", to: "api/v1/songs#create"
+ get "/v1/songs/:id", to: "api/v1/songs#show"
+
+ get "/v1/songs_with_options/:id", to: "api/v1/songs_controller/with_options#show"
end