Sha256: a095457fee0becfefb1a12204efce7bbf4786fec4a2dcd6cc89a86e37bbf7084

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

Sunrise::Engine.routes.draw do
  root :to => "dashboard#index"
  
  get "/services", :to => "shared#services", :as => "services"
  get "/dashboard/p/:page", :to => "dashboard#index", :page => /\d+/
  
  resource :settings, :only => [:edit, :update]
  
  controller "manager" do
    scope ":model_name" do
      get "/", :to => :index, :as => "index", :via => [:get, :post]
      get "/export.:format", :to => :export, :as => "export"
      post "/sort", :to => :sort, :as => "sort"
      get "/new", :to => :new, :as => "new"
      post "/new", :to => :create, :as => "create"
      delete "/mass_destroy", :to => :mass_destroy, :as => "mass_destroy"
      
      scope ":id" do
        get "/", :to => :show, :as => "show"
        get "/edit", :to => :edit, :as => "edit"
        put "/edit", :to => :update, :as => "update"
        get "/delete", :to => :delete, :as => "delete"
        delete "/delete", :to => :destroy, :as => "destroy"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunrise-cms-0.6.11 config/routes.rb
sunrise-cms-0.6.10 config/routes.rb
sunrise-cms-0.6.9 config/routes.rb