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.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/interfaces/http/http.rb b/interfaces/http/http.rb
new file mode 100644
index 0000000..0a8457c
--- /dev/null
+++ b/interfaces/http/http.rb
@@ -0,0 +1,10 @@
+require 'sinatra/base'
+require_relative '../ruby/ruby'
+require_relative 'web/web'
+
+$config = Config.first
+
+class HTTPInterface < Sinatra::Base
+ use WebInterface
+ run! if app_file == $0
+end