Sha256: ee684b9e710203c79f4802c78a7d62484d64c1d12e107f43ab23312b1f7b5ea3

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

::Refinery::Application.routes.draw do
  scope(:path => 'blog', :module => 'blog') do
    root :to => 'posts#index', :as => 'blog_root'
    match 'feed.rss', :to => 'posts#index.rss', :as => 'blog_rss_feed'
    match ':id', :to => 'posts#show', :as => 'blog_post'
    match 'categories/:id', :to => 'categories#show', :as => 'blog_category'
    match ':id/comments', :to => 'posts#comment', :as => 'blog_post_blog_comments'
    get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_blog_posts'
    get 'tagged/:tag_name' => 'posts#tagged', :as => 'tagged_posts'
  end

  scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
    scope(:path => 'blog', :as => 'blog', :module => 'blog') do
      root :to => 'posts#index'
      resources :posts do
        get 'uncategorized', :on => :collection
      end

      resources :categories

      resources :comments do
        collection do
          get :approved
          get :rejected
        end
        member do
          get :approved
          get :rejected
        end
      end

      resources :settings do
        collection do
          get :notification_recipients
          post :notification_recipients

          get :moderation
          get :comments
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-blog-1.5.2 config/routes.rb
refinerycms-blog-1.5.1 config/routes.rb
refinerycms-blog-1.5.0 config/routes.rb
refinerycms-blog-1.4.0 config/routes.rb