view http/src/luan/modules/http/serve.luan @ 693:ca169567ce07

module URIs must now include ".luan"
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Apr 2016 15:54:11 -0600
parents 2b9bc97f0439
children
line wrap: on
line source

local Io = require "luan:Io.luan"
local Server = require "luan:http/Server.luan"

if #{...} ~= 1 then
	Io.stderr.write "usage: luan luan:http/serve dir-URI\n"
	return
end

Server.serve(...)