feat: add API getallorders and getorder by id

This commit is contained in:
2026-06-23 14:09:32 +03:00
parent 93a08c7d13
commit 1d226d9aaf
3 changed files with 28 additions and 1 deletions
-1
View File
@@ -52,7 +52,6 @@ func AuthRequired() gin.HandlerFunc {
func AdminOnly() gin.HandlerFunc {
return func(c *gin.Context) {
role, exists := c.Get("role")
if !exists || role != "Админ" {
c.JSON(http.StatusForbidden, gin.H{"error": "Доступ ограничен"})
c.Abort()