Sha256: a1f795db92e454c5f87ac2714b3d178151ba8697b7c020dcb3b1b88918b7207a

Contents?: true

Size: 887 Bytes

Versions: 1

Compression:

Stored size: 887 Bytes

Contents

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

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

  scope "(:locale)", :locale => Regexp.new(::I18n.available_locales.join("|")) do
    scope Faalis::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]
      resource :profile, :except => [:new, :destroy]
      get "logs" => "logs#index"
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faalis-0.7.0 config/routes.rb