fix: default route

This commit is contained in:
Damillora 2023-08-30 21:23:08 +07:00
parent 2eaf696b53
commit 03dfacc3df
2 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,6 @@
package app
import (
"net/http"
"github.com/gin-gonic/gin"
)
@ -11,5 +9,5 @@ func InitializeFrontendRoutes(g *gin.Engine) {
}
func frontendHome(c *gin.Context) {
c.Redirect(http.StatusFound, "/")
c.File("./web/static/index.html")
}