aboutsummaryrefslogtreecommitdiff
path: root/interfaces/http/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/http/http.rb')
-rw-r--r--interfaces/http/http.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/interfaces/http/http.rb b/interfaces/http/http.rb
index 0a8457c..5c9eca4 100644
--- a/interfaces/http/http.rb
+++ b/interfaces/http/http.rb
@@ -1,6 +1,9 @@
require 'sinatra/base'
require_relative '../ruby/ruby'
-require_relative 'web/web'
+
+Dir.glob('*/*.rb', base: __dir__).grep(/^(.*)\/\1\.rb$/).each do |f|
+ require_relative f
+end
$config = Config.first