mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: dynamic writing site title, favicon, description, custom html (#286)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user