fix: /install path will be redirected to /ˆ

This commit is contained in:
LinkinStar 2022-11-10 11:22:07 +08:00
parent a088fa439a
commit 555c1936ad
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ func (a *UIRouter) Register(r *gin.Engine) {
filePath = UIRootFilePath + name
case "/manifest.json":
filePath = UIRootFilePath + name
case "/install":
c.Redirect(http.StatusFound, "/")
return
default:
filePath = UIIndexFilePath
c.Header("content-type", "text/html;charset=utf-8")