Sha256: 29b63a4f1953896b596cbdac6f39984467dcd074807a2a9b0746c27d17684195

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

EffectiveLogging::Engine.routes.draw do
  scope module: 'effective' do
    # Create is our javascript POST event for EffectiveLogging from JS side
    # The show and index routes are for user specific logs
    resources :logs, only: [:create, :index, :show] do
      member { get :html_part }
    end
  end

  namespace :admin do
    resources :logs, only: [:index, :show]
    resources :tracks, only: :index
  end

end

Rails.application.routes.draw do
  mount EffectiveLogging::Engine => '/', :as => 'effective_logging'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_logging-4.3.1 config/routes.rb
effective_logging-4.3.0 config/routes.rb