Mercurial > zeropaste
view config/routes.rb @ 243:f66e6e18d24b
Update gems.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 09 Aug 2013 08:40:10 +0000 |
parents | 953d284ec195 |
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