Sha256: dbf061ea961039d1f1eae648d12c8a3bf7c0fe49e8689224abb76a1cf417fa02

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 Bytes

Contents

RedBase::Engine.routes.draw do
  get "templates/*path" => "dashboard#jstemplate"

  # Authentications
  devise_for :users, {
    :class_name => "RedBase::User",
    :controllers => { :omniauth_callbacks => "red_base/omniauth/callbacks" },
    :module => :devise
  }

  scope "(:locale)", :locale => Regexp.new(::I18n.available_locales.join("|")) do
    scope RedBase::Engine.dashboard_namespace.to_sym do
      get "" => "dashboard#index", :as => "dashboard"
      get "modules" => "dashboard#modules"
    end


    # Root URL
    root :to => "home#index"
  end


  namespace :api, :defaults => {:format => :json} do
    namespace :v1 do
      get "permissions", :to => "permissions#index"
      resources :groups, :except => [:new]
      resources :users, :except => [:new]
      get "logs" => "logs#index"
    end
  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
red_base-0.6.0 config/routes.rb
red_base-0.5.1 config/routes.rb
red_base-0.5.0 config/routes.rb