test server put, tree, get
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user