forked from CenturyLinkLabs/lorry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.rb
31 lines (25 loc) · 573 Bytes
/
app.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'rubygems'
require 'bundler'
# Setup load paths
Bundler.require
$: << File.expand_path('../', __FILE__)
# Require base
require 'sinatra/base'
require 'app/errors'
require 'app/models'
require 'app/routes'
module Lorry
class App < Sinatra::Application
configure do
disable :method_override
disable :static
set :protection, except: :http_origin
set :bind, '0.0.0.0'
end
use Lorry::Routes::Images
use Lorry::Routes::Validation
use Lorry::Routes::Documents
use Lorry::Routes::Keys
end
end
include Lorry::Models