15 lines
280 B
Go
15 lines
280 B
Go
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()))
|
|
}
|