Sha256: d463863efeeefaa907b05aee8af11ddc2f65a845191221d1a81e406f722c3479

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

Kanaui::Engine.routes.draw do
  root to: 'dashboard#index'
  resources :dashboard, only: [:index]
  scope '/dashboard' do
    match '/available_reports' => 'dashboard#available_reports', :via => :get, :as => 'available_reports'
    match '/reports' => 'dashboard#reports', :via => :get, :as => 'reports'
  end

  resources :reports, only: %i[index new create edit update destroy]
  scope '/reports' do
    match '/refresh/:id' => 'reports#refresh', :via => :put, :as => 'refresh_report'
  end

  resources :settings, only: %i[index create]
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kanaui-4.0.3 config/routes.rb
kanaui-4.0.2 config/routes.rb
kanaui-4.0.1 config/routes.rb
kanaui-2.2.1 config/routes.rb
kanaui-4.0.0 config/routes.rb
kanaui-2.1.3 config/routes.rb
kanaui-2.1.2 config/routes.rb
kanaui-2.1.1 config/routes.rb
kanaui-2.1.0 config/routes.rb