Removed register GET request in favor of POST, and did required HTTP api changes

This commit is contained in:
Joona Hoikkala
2016-12-02 15:42:10 +02:00
parent c3ac7a211c
commit 5f68d84ca5
4 changed files with 75 additions and 27 deletions

View File

@ -49,7 +49,6 @@ func startHTTPAPI() {
})
api.Use(crs)
var ForceAuth = authMiddleware{}
api.Get("/register", webRegisterGet)
api.Post("/register", webRegisterPost)
api.Post("/update", ForceAuth.Serve, webUpdatePost)
switch DNSConf.API.TLS {