Sha256: 143ede3ab7ade2fff581a7750e6f7db4040e187b5a10cb0d792c6591d82da094

Contents?: true

Size: 1.81 KB

Versions: 16

Compression:

Stored size: 1.81 KB

Contents

#Rails.application.routes.prepend do 
DmCore::Engine.routes.draw do
  scope ':locale' do
    match '/profile/account',               controller: :profile, action: :account, as: :edit_profile_account, via: [:get, :patch]
    match '/profile/details',               controller: :profile, action: :details, as: :edit_profile_details, via: [:get, :patch]

    get   '/admin', controller: 'admin/dashboard', action: :index
    namespace :admin do 
      get   '/dashboard/index', controller: 'dashboard', action: :index, as: 'dashboard'
      patch '/dashboard/update_site_assets', controller: 'dashboard', action: :update_site_assets
      patch '/dashboard/change_theme/:id', controller: 'dashboard', action: :change_theme, as: :change_theme
      resources :users do
        member do
          get  :masquerade
          get  :confirm
        end
      end
      resources :comments

      get     '/account/new_account',       to: 'accounts#new_account',                     as: :account_new
      post    '/account/create_account',    to: 'accounts#create_account',                  as: :account_create
      match   '/account/:id/general',       to: 'accounts#general',    via: [:get, :patch], as: :account_general
      match   '/account/:id/email',         to: 'accounts#email',      via: [:get, :patch], as: :account_email
      match   '/account/:id/analytics',     to: 'accounts#analytics',  via: [:get, :patch], as: :account_analytics
      match   '/account/:id/metadata',      to: 'accounts#metadata',   via: [:get, :patch], as: :account_metadata
      match   '/account/:id/media',         to: 'accounts#media',      via: [:get, :patch], as: :account_media
      get     '/account/(:id)',             to: 'accounts#show',                            as: :account

      get     '/system/',                   to: 'system#show'

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_core-4.2.3.10 config/routes.rb
dm_core-4.2.3.9 config/routes.rb
dm_core-4.2.3.8 config/routes.rb
dm_core-4.2.3.7 config/routes.rb
dm_core-4.2.3.6 config/routes.rb
dm_core-4.2.3.5 config/routes.rb
dm_core-4.2.3.4 config/routes.rb
dm_core-4.2.3.3 config/routes.rb
dm_core-4.2.3.2 config/routes.rb
dm_core-4.2.3.1 config/routes.rb
dm_core-4.2.3 config/routes.rb
dm_core-4.2.2.3 config/routes.rb
dm_core-4.2.2.2 config/routes.rb
dm_core-4.2.2.1 config/routes.rb
dm_core-4.2.2 config/routes.rb
dm_core-4.2.1.5 config/routes.rb