view src/luan/modules/http/serve.luan @ 1201:7f4a12fb7716

remove logging/init.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Mar 2018 17:07:48 -0700
parents 1aa6dd74f3fc
children 7fc83fd2a39a
line wrap: on
line source

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


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

Logging.init()
Server.serve(...)