X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a67fdc7d28b0317835337bfce578259fdcc0118f..fa9654fe90bc3352f16bb2924191af2217a83663:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index c832cbb35..650818d6f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -78,6 +78,15 @@ OpenStreetMap::Application.routes.draw do end end + resources :messages, :path => "user/messages", :constraints => { :id => /\d+/ }, :only => [:create, :show, :destroy], :controller => "messages", :as => :api_messages do + collection do + get "inbox" + get "outbox" + end + end + + post "/user/messages/:id" => "messages#update", :as => :api_message_update + post "gpx/create" => "traces#create" get "gpx/:id" => "traces#show", :as => :api_trace, :id => /\d+/ put "gpx/:id" => "traces#update", :id => /\d+/