Fixed exception handling

This commit is contained in:
Borna Rajković 2025-08-05 19:30:44 +02:00
parent b2646e5aa1
commit 4afc641ecd

View File

@ -12,13 +12,13 @@ import (
func NoMethod() gin.HandlerFunc {
return func(c *gin.Context) {
c.AbortWithError(http.StatusNotFound, nil)
c.AbortWithStatus(http.StatusNotFound)
}
}
func NoRoute() gin.HandlerFunc {
return func(c *gin.Context) {
c.AbortWithError(http.StatusNotFound, nil)
c.AbortWithStatus(http.StatusNotFound)
}
}