working commit

This commit is contained in:
2026-02-06 09:27:45 +02:00
parent 4f01100473
commit 88bfe00d61
11 changed files with 246 additions and 302 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
package handler
import (
"net/http"
"mstore/app/router"
)
@@ -15,7 +17,7 @@ func (hand *Handler) SendResult(rctx *router.Context, result any) {
Error: false,
Result: result,
}
rctx.SendJSON(response)
rctx.SendJSON(http.StatusOK, response)
}
func (hand *Handler) SendError(rctx *router.Context, err error) {
@@ -23,5 +25,5 @@ func (hand *Handler) SendError(rctx *router.Context, err error) {
Error: true,
Message: err.Error(),
}
rctx.SendJSON(response)
rctx.SendJSON(http.StatusOK, response)
}