mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
add restrict for expense,purchase,adjustment transfer: unfinished
This commit is contained in:
@@ -25,3 +25,16 @@ func ErrorHandler(c *fiber.Ctx, err error) error {
|
||||
func NotFoundHandler(c *fiber.Ctx) error {
|
||||
return response.Error(c, fiber.StatusNotFound, "Endpoint Not Found", nil)
|
||||
}
|
||||
|
||||
|
||||
func BadRequest(msg string) error {
|
||||
return fiber.NewError(fiber.StatusBadRequest, msg)
|
||||
}
|
||||
|
||||
func NotFound(msg string) error {
|
||||
return fiber.NewError(fiber.StatusNotFound, msg)
|
||||
}
|
||||
|
||||
func Internal(msg string) error {
|
||||
return fiber.NewError(fiber.StatusInternalServerError, msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user