feat: add route order

This commit is contained in:
2026-06-23 11:12:47 +03:00
parent 66070c2e73
commit c32aee50dc
3 changed files with 89 additions and 2 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ import (
)
func getUserID(c *gin.Context) uint {
userID, _ := c.Get("user_id")
return userID.(uint)
val, _ := c.Get("user_id")
userID, _ := val.(uint)
return userID
}
func GetCart(c *gin.Context) {