Rails.application.routes.draw do
  
  namespace :panel do
    namespace :personal_research do
      namespace :back_end do
	  
        match 'research_setting' => "researchs#research_setting" ,:as => :research_setting
		  
        resources :researchs do
          collection do
            get 'delete'
          end
		  
          match "tag_quick_add" => "researchs#tag_quick_add" ,:as => :tag_quick_add
          match "tag_quick_edit" => "researchs#tag_quick_edit" ,:as => :tag_quick_edit
        end
		
        resources :tags
      end
      namespace :front_end do
        resources :researchs
      end
      namespace :plugin do
        resources :researchs
      end
      namespace :widget do
        match "researchs" => "researchs#index"
        match "home_list" => "researchs#home_list"
        match "reload_researchs" => "researchs#reload_researchs"
      end
    end
  end
 match "/appfront/*path" => redirect("/panel/*path")
 
end