Explorar o código

routed the root to point to the homepage

AETH-erial hai 7 meses
pai
achega
204bdcf327
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/routes/register.go

+ 1 - 0
pkg/routes/register.go

@@ -8,6 +8,7 @@ import (
 func Register(e *gin.Engine, root string, domain string, redisPort string, redisAddr string) {
 	c := controller.NewController(root, domain, redisPort, redisAddr)
 	web := e.Group("")
+	web.GET("/", c.ServeBlogHome)
 	web.GET("/home", c.ServeHome)
 	web.GET("/blog", c.ServeBlogHome)
 	web.GET("/creative", c.ServeCreativeWriting)