diff src/luan/modules/http/test.luan @ 775:1a68fc55a80c

simplify dir structure
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 26 Aug 2016 14:36:40 -0600
parents http/src/luan/modules/http/test.luan@ca169567ce07
children a50803fde972
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/luan/modules/http/test.luan	Fri Aug 26 14:36:40 2016 -0600
@@ -0,0 +1,12 @@
+local Luan = require "luan:Luan.luan"
+local Io = require "luan:Io.luan"
+local Server = require "luan:http/Server.luan"
+
+if #{...} ~= 2 then
+	Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n"
+	return
+end
+
+local dir, test = ...
+Server.init(dir)
+Luan.do_file(test)