-
-
Save Ruxton/2964330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PetrescueAdmin::Application.routes.draw do | |
devise_for :users | |
root to: redirect("/users/sign_in") | |
resources :groups, only: [:new, :create, :show] | |
get 'rescue_directory' => 'groups#index' | |
get 'rescue_directory/:state' => 'groups#list_by_state' | |
resources :listings, only: [:index] | |
resources :blog_posts | |
namespace :admin do | |
resources :blog_posts, only: [:index] | |
resources :users do | |
resource :notification_settings, only: [:edit, :update], controller: "users/notification_settings" | |
end | |
resources :groups, except: [:new, :create], controller: "groups/groups" do | |
collection do | |
get :pending | |
end | |
member do | |
put :activate, :setflag | |
delete :decline | |
end | |
resources :log_entries, path: :notes, only: [:new, :create], controller: "groups/notes" | |
resources :listings, except: [:show], controller: "groups/listings" do | |
collection do | |
put :mass_update_status | |
end | |
end | |
resources :users, except: [:show], controller: "groups/users" | |
end | |
resources :listings, only: [:index] | |
resources :users, only: [:index] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment