Mercurial > zeropaste
view config/routes.rb @ 240:16251b94eb6c
Whoops, forgot to secure the "new paste based on ##"
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 07 Oct 2013 13:14:37 +0900 |
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