restful /configs

This commit is contained in:
Mikaël Cluseau
2019-02-01 18:35:50 +11:00
parent f4f285d0dc
commit 4d07db7b2c
4 changed files with 82 additions and 81 deletions

View File

@ -42,7 +42,7 @@ func main() {
// by default, serve a host resource by its IP
//http.HandleFunc("/", serveHostByIP)
http.HandleFunc("/configs", uploadConfig)
//http.HandleFunc("/configs", uploadConfig)
http.HandleFunc("/hosts", serveHosts)
//http.HandleFunc("/hosts/", serveHost)