File: hiki.ru

package info (click to toggle)
hiki 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,812 kB
  • ctags: 2,033
  • sloc: ruby: 14,572; lisp: 926; sh: 19; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env rackup
# -*- ruby -*-

$LOAD_PATH.unshift '.'

require 'hiki/app'
require 'hiki/attachment'

use Rack::Lint
use Rack::ShowExceptions
use Rack::Reloader
#use Rack::Session::Cookie
#use Rack::ShowStatus
use Rack::CommonLogger
use Rack::Static, :urls => ['/theme'], :root => '.'

map '/' do
  run Hiki::App.new('hikiconf.rb')
end
map '/attach' do
  run Hiki::Attachment.new('hikiconf.rb')
end