$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'txdb'
require 'sinatra'

map '/hooks' do
  use Txdb::Hooks
  run Sinatra::Base
end

map '/' do
  use Txdb::Application
  use Txdb::Triggers
  run Sinatra::Base
end
