mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
add missing token for del endpoint
This commit is contained in:
parent
754a1f5b4d
commit
a65a697393
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ fi; printf "%b\n" "$CLR";
|
|||
|
||||
ENDPOINT="/api/v1/userCompletely"
|
||||
printf "\n%bTest: $ENDPOINT%b\n" "$BLD" "$CLR"
|
||||
TOKEN=$(curl --show-error --fail-with-body --request POST http://"$BINDADDR":"$PORT""/api/v1/newUser" -d "username=testUser1" -d "password=$PASSWORD" -d "email=test@example.xyz" | jq ".[0].token" | tr -d '"')
|
||||
|
||||
curl --show-error --fail-with-body --request DELETE http://"$BINDADDR":"$PORT""$ENDPOINT" \
|
||||
-H "Authorization: $TOKEN"
|
||||
|
|
Loading…
Add table
Reference in a new issue