Use AbortWithStatusJSON instead of AbortWithError
This commit is contained in:
@ -33,6 +33,10 @@ func (h *Handler) Serve() {
|
||||
}
|
||||
}
|
||||
|
||||
type ErrorResponse struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
// LoadRoutes initializes all the routes.
|
||||
func (h *Handler) LoadRoutes(router *gin.Engine) {
|
||||
router.Use(enableCachingForStaticFiles())
|
||||
|
Reference in New Issue
Block a user