Skip to content
This repository
branch: small-ui-chang…
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.648 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Monologue::Engine.routes.draw do
  root :to => "posts#index"
  match "/page/:page", :to => "posts#index", :as => "posts_page"
  match "/feed" => "posts#feed", :as => "feed", :defaults => {:format => :rss}

  match "/tags/:tag" =>"tags#show", :as => "tags_page"

  namespace :admin, :path => "monologue" do
    get "/" => "posts#index", :as => "" # responds to admin_url and admin_path
    get "logout" => "sessions#destroy"
    get "login" => "sessions#new"
    resources :sessions
    resources :posts
    resources :users
    get "comments" => "comments#show", :as => "comments"
  end

  match "*post_url" => "posts#show", :as => "post"
end
Something went wrong with that request. Please try again.