chore: add CI backend
This commit is contained in:
@@ -126,7 +126,6 @@ func EndAlert(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Mettre fin à l'alerte en changeant le statut à false
|
||||
err = database.EndAlert(alertID)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": "Impossible de mettre fin à l'alerte", "details": err.Error()})
|
||||
@@ -141,7 +140,6 @@ func EndAlert(c *gin.Context) {
|
||||
})
|
||||
}
|
||||
|
||||
// GetMyAlerts permet au livreur de voir ses alertes
|
||||
func GetMyAlerts(c *gin.Context) {
|
||||
database := c.MustGet("database").(*db.Database)
|
||||
|
||||
@@ -195,7 +193,6 @@ func GetAllAlerts(c *gin.Context) {
|
||||
})
|
||||
}
|
||||
|
||||
// GetActiveAlerts permet aux admins de voir toutes les alertes actives
|
||||
func GetActiveAlerts(c *gin.Context) {
|
||||
database := c.MustGet("database").(*db.Database)
|
||||
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
// ============================================
|
||||
// handlers/auth_handlers_REFACTORED.go
|
||||
// ============================================
|
||||
// Version simplifiée sans les middlewares
|
||||
// Les middlewares sont maintenant dans middleware/middleware_CORRIGES.go
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user