Sha256: 3227e761620d256bf3beaa0fca4cf4561674d57c93651b4ed99416295c32db52
Contents?: true
Size: 384 Bytes
Versions: 8
Compression:
Stored size: 384 Bytes
Contents
require 'carte/server' require 'json' $config = JSON.parse(File.read('config.json')) class Carte::Server configure do Mongoid.load! './mongoid.yml' set :carte, $config end end map('/') do use Rack::Static, urls: [""], root: $config['root_dir'], index: $config['html_path'] run Rack::Directory.new $config['root_dir'] end map('/api') do run Carte::Server.new end
Version data entries
8 entries across 8 versions & 1 rubygems