Browse Source

routed the root to point to the homepage

AETH-erial 4 months ago
parent
commit
204bdcf327
1 changed files with 1 additions and 0 deletions
  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)