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
|
filePath = UIRootFilePath + name
|
||||||
case "/manifest.json":
|
case "/manifest.json":
|
||||||
filePath = UIRootFilePath + name
|
filePath = UIRootFilePath + name
|
||||||
|
case "/install":
|
||||||
|
c.Redirect(http.StatusFound, "/")
|
||||||
|
return
|
||||||
default:
|
default:
|
||||||
filePath = UIIndexFilePath
|
filePath = UIIndexFilePath
|
||||||
c.Header("content-type", "text/html;charset=utf-8")
|
c.Header("content-type", "text/html;charset=utf-8")
|
||||||
|
|
Loading…
Reference in New Issue