working commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user