mirror of https://gitee.com/answerdev/answer.git
fix: /install path will be redirected to /ˆ
This commit is contained in:
parent
a088fa439a
commit
555c1936ad
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue