summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/webserver/init.lua
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-03-05 09:52:54 -0500
committer Brad Hughes <bradhugh@outlook.com>2016-03-05 09:52:54 -0500
commit50fc05a49fcc6b689271ecff2dfae209bb4bfd47 (patch)
tree9bce43cfb23e17399376f45ee18a417b0dee5eef /plugins/webserver/init.lua
parentf7b8e47a17efd84963e685c39840ff111787d929 (diff)
parent23eaaa9244ffa216e0b8365916d9cf3af785279b (diff)
Merge branch 'master' of https://github.com/mamedev/mame.git
Diffstat (limited to 'plugins/webserver/init.lua')
-rw-r--r--plugins/webserver/init.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/webserver/init.lua b/plugins/webserver/init.lua
deleted file mode 100644
index 3d68b01e6d5..00000000000
--- a/plugins/webserver/init.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local exports = {}
-exports.name = "webserver"
-exports.version = "1.0.0"
-exports.description = "A simple web server"
-exports.license = "MIT"
-exports.author = { name = "Miodrag Milanovic" }
-
-local ws = exports
-
-local app = require('weblit/app')
-
-function ws.startplugin()
- app.bind({
- host = "0.0.0.0",
- port = 8080
- })
-
- app.use(require('weblit/logger'))
- app.use(require('weblit/auto-headers'))
- app.use(require('weblit/etag-cache'))
-
- app.route({
- method = "GET",
- path = "/",
- }, function (req, res, go)
- res.code = 200
- res.headers["Content-Type"] = "text/html"
- res.body = "<h1>Hello!</h1>\n"
- end)
-
- app.start()
-end
-
-return exports