diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 3599438..ff40f8e 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -93,6 +93,9 @@ CREATED_ID=$(curl -s -X POST https://go-api.poc.fló.fo/api/v1/registrations \ -d '{"gender":"unknown","location":"Tórshavn","abuse_type":"psychological","status":"new"}' \ | sed -n 's/.*"id":"\([^"]*\)".*/\1/p') +curl -s "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \ + -H "Authorization: $ADMIN_TOKEN" + curl -s -X PUT "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \ -H "Authorization: $ADMIN_TOKEN" \ -H 'Content-Type: application/json' \