Redirect root path to web index
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -107,6 +107,11 @@ func SifRouter(r *gin.Engine) {
|
|||||||
ctx.HTML(http.StatusOK, "common/manga.html", gin.H{})
|
ctx.HTML(http.StatusOK, "common/manga.html", gin.H{})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// webui
|
||||||
|
r.GET("/", func(ctx *gin.Context) {
|
||||||
|
ctx.Redirect(http.StatusFound, "/admin/index")
|
||||||
|
})
|
||||||
|
|
||||||
notFoundHandler := func(ctx *gin.Context) {
|
notFoundHandler := func(ctx *gin.Context) {
|
||||||
ss := session.Attach(ctx)
|
ss := session.Attach(ctx)
|
||||||
defer ss.Finalize()
|
defer ss.Finalize()
|
||||||
|
|||||||
Reference in New Issue
Block a user