end
namespace :api, :path => "api/0.6" do
+ resources :changeset_comments, :only => :index
+
resources :nodes, :only => [:index, :create]
resources :nodes, :path => "node", :id => /\d+/, :only => [:show, :update, :destroy] do
scope :module => :nodes do
end
resources :user_blocks, :only => :show, :id => /\d+/, :controller => "user_blocks"
+ namespace :user_blocks, :path => "user/blocks" do
+ resource :active_list, :path => "active", :only => :show
+ end
end
# Data browsing
resource :account, :only => [:edit, :update, :destroy] do
scope :module => :accounts do
resource :terms, :only => [:show, :update]
+ resource :pd_declaration, :only => [:show, :create]
resource :deletion, :only => :show
end
end