map.connect 'api/0.4/segment/:id', :controller => 'segment', :action => 'rest'
map.connect 'api/0.4/way/create', :controller => 'way', :action => 'create'
map.connect 'api/0.4/segment/:id', :controller => 'segment', :action => 'rest'
map.connect 'api/0.4/way/create', :controller => 'way', :action => 'create'