mirror of https://gitee.com/answerdev/answer.git
feat: add /50x web page
This commit is contained in:
parent
555c1936ad
commit
3f5ac0a614
|
@ -35,16 +35,16 @@ func NewInstallHTTPServer() *gin.Engine {
|
|||
|
||||
installApi := r.Group("")
|
||||
installApi.GET("/install", WebPage)
|
||||
|
||||
installApi.GET("/50x", WebPage)
|
||||
installApi.GET("/installation/language/options", LangOptions)
|
||||
|
||||
installApi.POST("/installation/db/check", CheckDatabase)
|
||||
|
||||
installApi.POST("/installation/config-file/check", CheckConfigFile)
|
||||
|
||||
installApi.POST("/installation/init", InitEnvironment)
|
||||
|
||||
installApi.POST("/installation/base-info", InitBaseInfo)
|
||||
|
||||
r.NoRoute(func(ctx *gin.Context) {
|
||||
ctx.Redirect(http.StatusFound, "/50x")
|
||||
})
|
||||
return r
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue