remove extra token argument from API

This commit is contained in:
Earl Warren 2023-06-14 22:00:42 +02:00
parent 4ebf29226f
commit 3a6f1eb8f9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 0579CB2928A78A00

View file

@ -48,6 +48,7 @@ function api() {
path=$1
shift
token=$1
shift
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
}