feat: add /50x web page

This commit is contained in:
LinkinStar 2022-11-10 11:31:53 +08:00
parent 555c1936ad
commit 3f5ac0a614
1 changed files with 5 additions and 5 deletions

View File

@ -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
}