Mercurial > zeropaste
view config/routes.rb @ 208:953d284ec195
Revamp the routing
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sat, 11 May 2013 22:39:06 +0900 |
parents | b4b7a29b70f6 |
children | 9fe8c29c27c4 |
line wrap: on
line source
Zeropaste::Application.routes.draw do post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes' resources :pastes, only: [:show, :destroy], path: "/" root to: 'pastes#new' end