This commit is contained in:
Adrian Zürcher
2025-04-29 09:16:27 +02:00
parent 2839b615c3
commit 83cbcdaa42
8 changed files with 207 additions and 164 deletions

View File

@@ -13,3 +13,11 @@ func GetIDFromAuth(c *gin.Context) (string, error) {
}
return "", errors.New("authorization token missing")
}
func GetIDFromQuery(c *gin.Context) (string, error) {
auth, exists := c.GetQuery("id")
if !exists {
return "", errors.New("id missing")
}
return auth, nil
}