Move uigo to ui

This commit is contained in:
Jannis Mattheis 2018-03-21 17:31:01 +01:00 committed by Jannis Mattheis
parent d5d19b55bb
commit 61cf795c47
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/gotify/server/auth" "github.com/gotify/server/auth"
"github.com/gotify/server/database" "github.com/gotify/server/database"
"github.com/gotify/server/error" "github.com/gotify/server/error"
"github.com/gotify/server/uigo" "github.com/gotify/server/ui"
"github.com/jmattheis/go-packr-swagger-ui" "github.com/jmattheis/go-packr-swagger-ui"
"net/http" "net/http"
@ -32,7 +32,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
g.Use(gin.Logger(), gin.Recovery(), error.Handler()) g.Use(gin.Logger(), gin.Recovery(), error.Handler())
g.NoRoute(error.NotFound()) g.NoRoute(error.NotFound())
uigo.Register(g) ui.Register(g)
g.GET("/swagger", docs.Serve) g.GET("/swagger", docs.Serve)
g.GET("/docs/*any", gin.WrapH(http.StripPrefix("/docs/", http.FileServer(swaggerui.GetBox())))) g.GET("/docs/*any", gin.WrapH(http.StripPrefix("/docs/", http.FileServer(swaggerui.GetBox()))))

View File

@ -1,4 +1,4 @@
package uigo package ui
import ( import (
"github.com/gobuffalo/packr" "github.com/gobuffalo/packr"