commit 6d9a68ccc142ccb1982adcd6936c91d5ad0c7a35
parent 3bfa5b006fecc1807ed8d6151c941da9be1d89ce
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 11 Jun 2023 16:50:29 -0700
testing code
Diffstat:
4 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/pkg/web/handlers/data.go b/pkg/web/handlers/data.go
@@ -918,9 +918,6 @@ type stego1RoadChallengeData struct {
FlagMessage string
}
-type chess1Data struct {
-}
-
type chessData struct {
Games []interceptors.ChessGame
Error string
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -4793,11 +4793,6 @@ func Stego1ChallengeHandler(c echo.Context) error {
return c.Render(http.StatusOK, "vip.stego1", data)
}
-func Chess1Handler(c echo.Context) error {
- var data chess1Data
- return c.Render(http.StatusOK, "chess1", data)
-}
-
func ChessHandler(c echo.Context) error {
authUser := c.Get("authUser").(*database.User)
db := c.Get("database").(*database.DkfDB)
diff --git a/pkg/web/public/views/pages/chess1.gohtml b/pkg/web/public/views/pages/chess1.gohtml
@@ -1,8 +0,0 @@
-{{ define "title" }}dkf - chess{{ end }}
-
-{{ define "content" }}
- <div class="container">
- TEST
- <img style="width: 100px;" src="/public/img/chess/bP.svg" alt="" />
- </div>
-{{ end }}
-\ No newline at end of file
diff --git a/pkg/web/web.go b/pkg/web/web.go
@@ -97,7 +97,6 @@ func getMainServer(db *database.DkfDB, i18nBundle *i18n.Bundle, renderer *tmp.Te
authGroup.POST("/captcha", handlers.CaptchaHandler, middlewares.AuthRateLimitMiddleware(time.Second, 1))
authGroup.GET("/donate", handlers.DonateHandler)
authGroup.GET("/shop", handlers.ShopHandler)
- authGroup.GET("/chess1", handlers.Chess1Handler)
authGroup.GET("/chess", handlers.ChessHandler)
authGroup.POST("/chess", handlers.ChessHandler)
authGroup.GET("/chess/:key", handlers.ChessGameHandler)