🎇 close #512 favicon redirect

This commit is contained in:
Xhofe
2022-02-08 18:07:13 +08:00
parent bef3d2f88d
commit 4f81735af6
5 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,10 @@
package controllers
import (
"github.com/Xhofe/alist/conf"
"github.com/gin-gonic/gin"
)
func Favicon(c *gin.Context) {
c.Redirect(302, conf.GetStr("favicon"))
}