Update api with registering handlers, middleware and authentication

This commit is contained in:
Daniel 2019-07-30 13:08:45 +02:00
parent a7105dc6ba
commit 8d091f7f7a
10 changed files with 255 additions and 37 deletions

View file

@ -7,5 +7,5 @@ import (
)
func init() {
api.RegisterAdditionalRoute("/test/", http.StripPrefix("/test/", http.FileServer(http.Dir("./api/testclient/root/"))))
api.RegisterHandler("/test/", http.StripPrefix("/test/", http.FileServer(http.Dir("./api/testclient/root/"))))
}