go 1.16 features
- use go embed instead of go-binary and remove all about old assets (go 1.16 feature) - pin gox version (go 1.16 feature) - update ci to go 1.16
This commit is contained in:
@@ -20,8 +20,8 @@ func SetupMiddlewares(group *gin.RouterGroup) {
|
||||
func SetupRoutes(router *gin.Engine) {
|
||||
root := router.Group(command.Opts.Prefix)
|
||||
|
||||
root.GET("/", GetHome)
|
||||
root.GET("/static/*path", GetAsset)
|
||||
root.GET("/", gin.WrapH(GetHome()))
|
||||
root.GET("/static/*path", gin.WrapH(GetAssets()))
|
||||
root.GET("/connect/:resource", ConnectWithBackend)
|
||||
|
||||
api := root.Group("/api")
|
||||
|
||||
Reference in New Issue
Block a user