diff --git a/internal/web/router/router.go b/internal/web/router/router.go index 0380973..033d397 100644 --- a/internal/web/router/router.go +++ b/internal/web/router/router.go @@ -120,6 +120,9 @@ func (s *service) initRouters(conf *model.Config, injector *do.Injector) *gin.En // static files r.Use(static.Serve("/", static.LocalFile("./resource/frontend", true))) + r.NoRoute(func(c *gin.Context) { + c.File("./resource/frontend/index.html") + }) return r }