v0.13.0 web and terminal client enhance, replay api, linux server deploy, doc and dependency update
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
52ac0fe31a
commit
f1ac4cbbe7
71 files changed
+7677
-537
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user