mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Cleaned, refactored, added db init script
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type errorMessage struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
func SendErrorMessageToClient(c *gin.Context, message string) {
|
||||
c.JSON(http.StatusBadRequest, errorMessage{Message: message})
|
||||
}
|
||||
Reference in New Issue
Block a user