Sha256: 17a60d8664fa55d809519fa44b4734ec40c73ebdf47f0de998c916c34eeaf650

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

PhcdevworksAccounts::Engine.routes.draw do

    # User Routes
    devise_for :users, {
        class_name: "PhcdevworksAccounts::User",
        module: :devise
    }

    # User Dashboard
    match "user/profile", to: "user/pages#profile", via: "get"

    # Admin Routes
    match "/admin", to: "admin/pages#dashboard", via: "get"
    match "/admin/users/all", to: "admin/pages#users_list", via: "get"
    match "/admin/user/:id", to: "admin/pages#user_id", via: "get"

    # Old Path Support (Will be Depricated)
    get "dashboard", to: "user/pages#profile"
    get "admin_users_index", to: "admin/pages#dashboard"

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcdevworks_accounts-2.3.0 config/routes.rb
phcdevworks_accounts-2.2.3 config/routes.rb
phcdevworks_accounts-2.2.1 config/routes.rb