chore: bootstrap CHFS NG workspace
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"chfs-ng/internal/api"
|
||||
"chfs-ng/internal/storage"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
s := &api.Server{Store: storage.Local{Root: "/data"}}
|
||||
log.Println("chfs-ng development server listening on :80")
|
||||
log.Fatal(http.ListenAndServe(":80", s.Handler()))
|
||||
}
|
||||
Reference in New Issue
Block a user