view config/routes.rb @ 255:a894d7696b7e

More useful return of Paste.fix_all.
author edogawaconan <me@myconan.net>
date Mon, 14 Oct 2013 17:49:52 +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