diff --git a/.air.toml b/.air.toml index 3cbeda5..fec689e 100644 --- a/.air.toml +++ b/.air.toml @@ -1,6 +1,6 @@ [build] bin = "tmp/piccolo" - cmd = "go build -o tmp/piccolo cmd/piccolo" + cmd = "go build -o tmp/piccolo ./cmd/piccolo" watch_dir = ["."] include_ext = ["go", "html"] diff --git a/api/helper/token.go b/api/helper/token.go index ec0bb86..84ee762 100644 --- a/api/helper/token.go +++ b/api/helper/token.go @@ -17,6 +17,7 @@ func ExtractTokenString(authHeader string) (string, error) { return "", fmt.Errorf("token is missing") } + return tokenString, nil } return "", fmt.Errorf("invalid authorization header format")