Cleaned, refactored, added db init script

This commit is contained in:
Florian Sylvain
2022-10-14 09:14:45 +02:00
parent 0835726beb
commit 68495b6430
8 changed files with 285 additions and 190 deletions
+15
View File
@@ -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})
}