From 20e7e3092fbaa48db4eb9e8f585e2256875ca8aa Mon Sep 17 00:00:00 2001 From: WeatherGod3218 Date: Sat, 16 May 2026 14:45:01 -0500 Subject: [PATCH] fix: No longer completely stops --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8422e75..db16d2f 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func RequireAuth() gin.HandlerFunc { value, exists := c.Get("claims") if !exists { - c.AbortWithStatusJSON(401, gin.H{ + c.JSON(401, gin.H{ "error": "unauthorized", }) return @@ -31,7 +31,7 @@ func RequireAuth() gin.HandlerFunc { claims, ok := value.(*cshAuth.Claims) if !ok || claims == nil { - c.AbortWithStatusJSON(401, gin.H{ + c.JSON(401, gin.H{ "error": "unauthorized", }) return