major refactoring of javascripts

This commit is contained in:
albert
2011-03-10 17:59:42 -05:00
parent efa6856b4a
commit 9c0a961ab2
28 changed files with 168 additions and 415 deletions

View File

@@ -68,6 +68,9 @@ Danbooru::Application.routes.draw do
end
resources :wiki_page_versions, :only => [:index]
match '/favorites/:id' => 'favorites#create', :via => :post, :as => "favorite"
match '/favorites/:id' => 'favorites#destroy', :via => :delete, :as => "favorite"
match '/favorites' => 'favorites#index', :via => :get, :as => "favorites"
match '/pool_post' => 'pools_posts#create', :via => :post, :as => 'pool_post'
match '/pool_post' => 'pools_posts#destroy', :via => :delete, :as => 'pool_post'
match '/post_moderation/moderate' => 'post_moderation#moderate'