Mercurial > zeropaste
view config/routes.rb @ 254:bcca41003e84
Use postgres 'cuz mysql is shit.
- utf8 isn't utf8 (hint: utf8mb4)
- index key too loooooooooooong
Nope.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 15 Oct 2013 01:47:19 +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