use data dir

This commit is contained in:
Ryan Ward 2025-08-18 21:03:57 -04:00
parent 967baa6aaf
commit 268c894a8a

View File

@ -8,7 +8,7 @@ import (
func main() {
port := flag.String("p", "8100", "port to serve on")
directory := flag.String("d", ".", "the directory of static file to host")
directory := flag.String("d", "data", "the directory of static file to host")
flag.Parse()
http.Handle("/", http.FileServer(http.Dir(*directory)))