test server put, tree, get

This commit is contained in:
Bel LaPointe
2022-02-08 12:52:53 -07:00
parent 09b3e4a002
commit 34b964e0bb
6 changed files with 90 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ func main() {
as := args.NewArgSet()
as.Append(args.INT, "p", "port to listen on", 3004)
as.Append(args.STRING, "d", "root dir with /index.html and /media and /files", "./public")
if err := as.Parse(); err != nil {
panic(err)
}
s := NewServer(as.GetString("d"))
if err := s.Routes(); err != nil {
panic(err)