Add announce page

Taken from http://prod.game1.ll.sdo.com/resources/maintenace/maintenance.php

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-01 06:40:31 +08:00
parent 07e1bc7314
commit 5ad74a5a69
8 changed files with 372 additions and 2 deletions
+3 -1
View File
@@ -22,6 +22,8 @@ func main() {
} else {
// Router
r := gin.Default()
r.Static("/static", "static")
r.LoadHTMLGlob("static/*.tmpl")
// /
r.Any("/", func(ctx *gin.Context) {
@@ -77,7 +79,7 @@ func main() {
m.POST("/album/seriesAll", handler.AlbumSeriesAllHandler)
}
r.GET("/webview.php/announce/index", handler.AnnounceIndexHandler, middleware.KlabHeader)
r.GET("/webview.php/announce/index", handler.AnnounceIndexHandler)
// Server APIs
r.Run(":8080") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")