Rails.application.routes.draw do
  namespace :panel do
    namespace :member do
      namespace :back_end do
        resources :member_lists do
          collection do
            get 'delete'
          end
        end
      end
      namespace :front_end do
        match "member_lists" => "member_lists#index"
        resources :member_lists
      end
      namespace :widget do
        match "index" => "member_lists#index"
      end
    end
  end
  match "/appfront/*path" => redirect("/panel/*path")
end