X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/541f0630ac0a63d0477aa4d6cfb01c648290b963..bbd6140f4bdc7746ecbd4d109316b2dd0b6d047f:/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+/