Sha256: f6543676d73ea37c3a007b133c376fe657766095aa128d5d1028d30cdd9fd347

Contents?: true

Size: 586 Bytes

Versions: 56

Compression:

Stored size: 586 Bytes

Contents

Cmor::Blog::Engine.routes.draw do
  localized do
    scope :cmor_blog_engine do
      resources :posts, only: [:index, :show] do
        get 'page/:page', action: :index, on: :collection
        get ':year/:month/:day', action: :index, on: :collection, constraints: { year: /\d+/, month: /\d+/, day: /\d+/ }, as: :day
        get ':year/:month', action: :index, on: :collection, constraints: { year: /\d+/, month: /\d+/ }, as: :month
        get ':year', action: :index, on: :collection, constraints: { year: /\d+/ }, as: :year
      end

      root to: 'posts#index'
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_blog-0.0.60.pre config/routes.rb
cmor_blog-0.0.59.pre config/routes.rb
cmor_blog-0.0.58.pre config/routes.rb
cmor_blog-0.0.57.pre config/routes.rb
cmor_blog-0.0.56.pre config/routes.rb
cmor_blog-0.0.55.pre config/routes.rb
cmor_blog-0.0.54.pre config/routes.rb
cmor_blog-0.0.53.pre config/routes.rb
cmor_blog-0.0.52.pre config/routes.rb
cmor_blog-0.0.51.pre config/routes.rb
cmor_blog-0.0.50.pre config/routes.rb
cmor_blog-0.0.49.pre config/routes.rb
cmor_blog-0.0.48.pre config/routes.rb
cmor_blog-0.0.45.pre config/routes.rb
cmor_blog-0.0.44.pre config/routes.rb
cmor_blog-0.0.43.pre config/routes.rb
cmor_blog-0.0.42.pre config/routes.rb
cmor_blog-0.0.41.pre config/routes.rb
cmor_blog-0.0.40.pre config/routes.rb
cmor_blog-0.0.39.pre config/routes.rb