Sha256: 164b018ba7434453a1d02fe0230932186646b933969faf1e8be7c5af0bfbdfbc

Contents?: true

Size: 1002 Bytes

Versions: 12

Compression:

Stored size: 1002 Bytes

Contents

# frozen_string_literal: true

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

EffectiveLearndash::Engine.routes.draw do
  # Public routes
  scope module: 'effective' do
    resources :learndash_courses, only: [:index] do
      resources :course_registrations, only: [:new, :show, :destroy] do
        resources :build, controller: :course_registrations, only: [:show, :update]
      end
    end
  end

  namespace :admin do
    get '/learndash', to: 'learndash#index', as: :learndash

    resources :learndash_users, except: [:edit, :destroy] do
      post :refresh, on: :member
    end

    resources :learndash_enrollments, only: [:index, :new, :create, :update] do
      post :refresh, on: :member
    end

    resources :learndash_courses, only: [:index, :edit, :update] do
      get :refresh, on: :collection
    end

    resources :course_registrants, only: [:index]
    resources :course_registrations, only: [:index, :show]
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_learndash-0.4.0 config/routes.rb
effective_learndash-0.3.3 config/routes.rb
effective_learndash-0.3.2 config/routes.rb
effective_learndash-0.3.1 config/routes.rb
effective_learndash-0.3.0 config/routes.rb
effective_learndash-0.2.1 config/routes.rb
effective_learndash-0.2.0 config/routes.rb
effective_learndash-0.1.9 config/routes.rb
effective_learndash-0.1.8 config/routes.rb
effective_learndash-0.1.7 config/routes.rb
effective_learndash-0.1.6 config/routes.rb
effective_learndash-0.1.5 config/routes.rb