2022-12-10 01:59:30 -05:00
|
|
|
require 'rubygems'
|
|
|
|
require 'sinatra/base'
|
2022-12-10 18:55:58 -05:00
|
|
|
require 'yaml'
|
2022-12-10 01:59:30 -05:00
|
|
|
|
|
|
|
require_relative 'app/settings.rb'
|
|
|
|
|
2022-12-10 18:55:58 -05:00
|
|
|
defaultCnf = YAML::load_file(File.join(__dir__, 'config/defaults.yaml'))
|
|
|
|
cnf = YAML::load_file(File.join(__dir__, 'config/local.yaml'))
|
|
|
|
cnf = defaultCnf.merge(cnf)
|
|
|
|
|
|
|
|
require 'net/ldap'
|
|
|
|
|
2022-12-10 01:59:30 -05:00
|
|
|
require_relative 'app/controllers/index.rb'
|
|
|
|
require_relative 'app/controllers/auth.rb'
|
|
|
|
|
|
|
|
map "/" do
|
|
|
|
run IndexController
|
|
|
|
end
|
|
|
|
|
|
|
|
map "/auth" do
|
|
|
|
run AuthController
|
|
|
|
end
|