repo.or.cz
/
regurgitator.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regurgitator 0.9.1
[regurgitator.git]
/
examples
/
domain_path.ru
blob
e1d7dbb9b231ac7dd1c0586497f16ee1aede7e67
1
require 'regurgitator'
2
db = Sequel.connect 'mysql2://user@example.com/mogilefs'
3
use Rack::ContentLength
4
use Rack::ContentType, 'text/plain'
5
run Regurgitator::DomainPath.new(lambda { |env| [ 404, [], [] ] }, db)