Add API skeleton

This commit is contained in:
Ian Gulliver
2022-03-16 04:12:17 +00:00
parent b61359cd73
commit 745773de00
4 changed files with 50 additions and 3 deletions

View File

@@ -13,6 +13,10 @@ func main() {
flag.Parse()
mux := http.NewServeMux()
api := NewAPI()
mux.Handle("/api/", http.StripPrefix("/api", api))
srv := &http.Server{
Addr: *bindFlag,
Handler: mux,