소스 검색

routed the root to point to the homepage

AETH-erial 7 달 전
부모
커밋
204bdcf327
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)