return missing "/search" and "/site.webmanifest" router

This commit is contained in:
Viacheslav Evseev
2024-02-22 02:40:54 +03:00
parent 0b80e0ada1
commit 3695797f74
4 changed files with 15 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ import (
"github.com/gin-gonic/gin"
)
func RouteWebPages(route *gin.RouterGroup) {
func RouteWebPages(route gin.IRouter) {
route.GET("/", func(c *gin.Context) {
etag := fmt.Sprintf("%x", md5.Sum(Indexhtml))
c.Header("Cache-Control", "public, max-age=31536000")