Sha256: 1b3ca68a50cd541837fd92eaf78dd9e3b6f3ea30020b0c7e68ee576e98083f23

Contents?: true

Size: 872 Bytes

Versions: 11

Compression:

Stored size: 872 Bytes

Contents

Hicube::Engine.routes.draw do
  
  root 'hicube/pages#show'

  devise_for :users,
    class_name: 'Hicube::User',
    path:        '',
    path_prefix: nil,
    failure_app: 'Hicube::Devise::FailureApp',
    module:      :devise

  resources :pages do
    resources :contents
  end

  resources :snippets
  
  resources :documents

  resource :tag

  resource :account
end

Rails.application.routes.draw do

  root 'hicube/public/pages#show', id: 'index'

  get ':id', to: 'hicube/public/pages#show', only: [:show]
  get ':id/edit', to: 'hicube/public/pages#edit', only: [:edit]
  post 'mail', to: 'hicube/public/pages#mail', only: [:mail]
  # get '/',        to: 'hicube/pages#show'
  # match '*path'   => 'hicube/pages#show', via: :all

  namespace :public do
    resources :pages, only: [:show, :edit]
  end

  get 'hicube/public/pages/:id', to: redirect('/%{id}')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hicube-0.0.11 config/routes.rb
hicube-0.0.10 config/routes.rb
hicube-0.0.9 config/routes.rb
hicube-0.0.8 config/routes.rb
hicube-0.0.7 config/routes.rb
hicube-0.0.6 config/routes.rb
hicube-0.0.5 config/routes.rb
hicube-0.0.4 config/routes.rb
hicube-0.0.3 config/routes.rb
hicube-0.0.2 config/routes.rb
hicube-0.0.1 config/routes.rb