feat/add meta query (#38)

* feat: add meta query

* fix: readme
This commit is contained in:
Lakhan Samani
2021-07-28 13:25:52 +05:30
committed by GitHub
parent f9d2bb8799
commit e11476364c
13 changed files with 564 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ func GetAuthToken(gc *gin.Context) (string, error) {
log.Println("cookie not found checking headers")
auth := gc.Request.Header.Get("Authorization")
if auth == "" {
return "", fmt.Errorf(`Unauthorized`)
return "", fmt.Errorf(`unauthorized`)
}
token = strings.TrimPrefix(auth, "Bearer ")