- match '/user/:display_name/inbox' => 'message#inbox', :via => :get
- match '/user/:display_name/outbox' => 'message#outbox', :via => :get
- match '/message/new/:display_name' => 'message#new', :via => [:get, :post]
- match '/message/read/:message_id' => 'message#read', :via => :get
- match '/message/mark/:message_id' => 'message#mark', :via => :post
- match '/message/reply/:message_id' => 'message#reply', :via => :get
- match '/message/delete/:message_id' => 'message#delete', :via => :post
+ match '/user/:display_name/inbox' => 'message#inbox', :via => :get, :as => "inbox"
+ match '/user/:display_name/outbox' => 'message#outbox', :via => :get, :as => "outbox"
+ match '/message/new/:display_name' => 'message#new', :via => [:get, :post], :as => "new_message"
+ match '/message/read/:message_id' => 'message#read', :via => :get, :as => "read_message"
+ match '/message/mark/:message_id' => 'message#mark', :via => :post, :as => "mark_message"
+ match '/message/reply/:message_id' => 'message#reply', :via => [:get, :post], :as => "reply_message"
+ match '/message/delete/:message_id' => 'message#delete', :via => :post, :as => "delete_message"