feat: upload config

This commit is contained in:
Mikaël Cluseau
2019-01-23 09:51:05 +13:00
parent bf26fce534
commit 115fb9b48f
3 changed files with 69 additions and 4 deletions

View File

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