Change endpoint name

pull/564/head
Rick Carlino 2017-12-11 15:20:02 -06:00
parent ad5af07583
commit c546cec792
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ FarmBot::Application.routes.draw do
# resources. Otherwise methods like `save()` on the frontend would need to
# keep track of an `isSingular` property, which I would prefer to not do.
get "/device/:id" => "devices#show", as: :get_device_redirect
get "/device/dump" => "devices#dump", as: :dump_device
get "/export_data" => "devices#dump", as: :dump_device
put "/device/:id" => "devices#update", as: :put_device_redirect
patch "/device/:id" => "devices#update", as: :patch_device_redirect
put "/users/:id" => "users#update", as: :put_users_redirect