Feat: dynamic writing site title, favicon, description, custom html (#286)

This commit is contained in:
HFO4
2020-05-19 10:24:15 +08:00
parent 280308bc05
commit 2076d56f0f
5 changed files with 144 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ func InitMasterRouter() *gin.Engine {
静态资源
*/
r.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{"/api/"})))
r.Use(middleware.InjectSiteInfo())
r.Use(static.Serve("/", bootstrap.StaticFS))
r.GET("manifest.json", controllers.Manifest)