lib/zena/use/urls.rb in zena-1.1.3 vs lib/zena/use/urls.rb in zena-1.2.0

- old
+ new

@@ -12,10 +12,11 @@ 'zafu' => {:url => '/nodes/#{node_zip}/zafu'}, 'publish' => {:url => '/nodes/#{node_zip}/versions/0/publish', :method => 'put'}, 'propose' => {:url => '/nodes/#{node_zip}/versions/0/propose', :method => 'put'}, 'refuse' => {:url => '/nodes/#{node_zip}/versions/0/refuse', :method => 'put'}, 'edit' => {:url => '/nodes/#{node_zip}/versions/0/edit'}, + 'create' => {:url => '/nodes', :method => 'post', :query => {:parent_id => 'node_zip'}}, } ALLOWED_REGEXP = /\A(([a-zA-Z]+)([0-9]+)|([#{String::ALLOWED_CHARS_IN_URL}\-%]+))(_[a-zA-Z]+|)(\..+|)\Z/ @@ -840,6 +841,6 @@ (NODE_ACTIONS[action] || {})[:method] || 'get' end end # ZafuMethods end # Urls end # Use -end # Zena \ No newline at end of file +end # Zena