v0.13.0 web and terminal client enhance, replay api, linux server deploy, doc and dependency update
test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-09-28 22:35:52 -04:00
1 parent 52ac0fe31a
commit f1ac4cbbe7
71 files changed
+7677 -537

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ func validationMiddleware(c *fiber.Ctx) error {
requestType = &core.MoveRequest{}
case strings.HasSuffix(path, "/undo") && method == fiber.MethodPost:
requestType = &core.UndoRequest{}
case strings.HasSuffix(path, "/resign") && method == fiber.MethodPost:
requestType = &core.ResignRequest{}
case strings.HasSuffix(path, "/draw") && method == fiber.MethodPost:
requestType = &core.DrawRequest{}
default:
return c.Next() // No validation for unknown endpoints
}