Sha256: bf23db963bee98be797a3dc1958bba0b6bbfc0ea32e038c2723f7a2e216eb63b

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

Dhatu::Engine.routes.draw do

	get   '/dashboard/dhatu',   to: "dashboard#index",  as:   :dashboard

	scope :admin do

		resources :branches do
			member do
				put :make_main, as:  :make_main
				put :remove_main, as:  :remove_main
				put :update_status, as:  :update_status
				put :mark_as_featured
	      put :remove_from_featured
			end
		end

		resources :sections do
			member do
				put :update_status, as:  :update_status
			end
		end

		resources :testimonials do
			member do
				put :update_status, as:  :update_status
				put :mark_as_featured
	      put :remove_from_featured
			end
		end

		resources :events do
	    member do
	      put :update_status, as:  :update_status
	      put :mark_as_featured
	      put :remove_from_featured
	    end
	  end

	  resources :blog_posts do
	    member do
	      put :update_status, as:  :update_status
	      put :mark_as_featured
	      put :remove_from_featured
	    end
	  end

	  resources :offers do
	    member do
	      put :update_status
	      put :mark_as_featured
	      put :remove_from_featured
	    end
	  end

	  resources :team_members do
			member do
				put :update_status, as:  :update_status
				put :mark_as_featured
	      put :remove_from_featured
			end
		end

		resources :categories do
      member do
        put :make_parent, as:  :make_parent
        put :update_status, as:  :update_status
        put :mark_as_featured, as:  :mark_as_featured
        put :remove_from_featured, as:  :remove_from_featured
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dhatu-0.1.4 config/routes.rb
dhatu-0.1.3 config/routes.rb