Sha256: f223b5ce05850670c7c9732c851e602f234bfe68bc5803b9128dfd7db0c6cfa2

Contents?: true

Size: 909 Bytes

Versions: 8

Compression:

Stored size: 909 Bytes

Contents

Sunrise::Engine.routes.draw do
  root Sunrise::Config.root_route_options
  
  get "/activities/p/:page", to: "activities#index", page: /\d+/
  get "/dashboard", to: "dashboard#index", as: :dashboard
  
  resource :settings, only: [:edit, :update]
  resources :activities, only: [:index]
  
  controller "manager" do
    scope ":model_name" do
      get "/", to: :index, as: :index
      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
        patch "/edit", to: :update, as: :update
        get "/delete", to: :delete, as: :delete
        delete "/delete", to: :destroy, as: :destroy
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sunrise-cms-1.0.6 config/routes.rb
sunrise-cms-1.0.5 config/routes.rb
sunrise-cms-1.0.4 config/routes.rb
sunrise-cms-1.0.3 config/routes.rb
sunrise-cms-1.0.2 config/routes.rb
sunrise-cms-1.0.1 config/routes.rb
sunrise-cms-1.0.0 config/routes.rb
sunrise-cms-1.0.0.rc3 config/routes.rb