add all old routes and handlers

add html index page when not authenticated
fixed auth's handling of empty permissions
This commit is contained in:
Jakob Schrettenbrunner
2017-08-02 22:02:34 +02:00
parent 3a65f409d1
commit 059ea8a047
10 changed files with 298 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ func (api *API) Listen() {
api.router = gin.Default()
api.router.GET("/", getRoot)
api.registerRoutes()
listenString := fmt.Sprintf("%s:%d", config.Get().Web.ListenHost, config.Get().Web.ListenPort)