Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (42 sloc) 1.919 kb
Borg2::Application.routes.draw do
# See how all your routes lay out with "rake routes"
# Change the scope parameter if your application is being served from a subdomain
# E.g.: scope "/subdomain" do ... end
scope "/" do
# Website root
root :to => "list#welcome"
# Main URLs
match 'page/*path' => 'page#view', :as => :page
match 'list/*path' => 'list#list', :as => :list
match 'attach/show' => 'attach#show'
match 'upload' => 'attach#upload', :as => :upload
match 'deleteUpload/*path' => 'attach#delete', :as => :deleteUpload
match 'attach/*path' => 'attach#fetch', :as => :attach
match 'tag/:id' => 'tags#show', :as => :tag
match 'blog(/:year(/:month(/:day)))' => 'list#blog',
:constraints => { :year => /(19|20)\d\d/ , :month => /[01]\d/ , :day => /[0-3]\d/ },
:as => :blog
# Feeds
match 'comments.rss' => 'list#comment', :defaults => { :format => 'rss' }
match 'blog.rss' => 'list#blog' , :defaults => { :format => 'rss', :year => Time.now.year.to_s }
# Single files
match 'robots.txt' => 'sitemap#robots'
match 'humans.txt' => 'sitemap#humans'
match 'sitemap.xml' => 'sitemap#sitemap'
# Social buttons
match 'social/buttons/*path' => 'social#buttons', :as => :socialbuttons
# OpenID
get 'login' => 'login#index'
# CRUD Actions
match 'edit/new' => 'edit#new', :as => :new
match 'create(/*path)' => 'edit#create', :as => :create
match 'edit/*path' => 'edit#read', :as => :edit
match 'preview/*path' => 'edit#preview', :as => :preview
match 'livepreview/*path' => 'edit#livepreview', :as => :livepreview
match 'save/*path' => 'edit#save', :as => :save
match 'delete/*path' => 'edit#delete', :as => :delete
match 'saveComment/*path' => 'comment#save', :as => :saveComment
# Default routing
match ':controller(/:action(/:id(.:format)))'
end
end
Jump to Line
Something went wrong with that request. Please try again.