From cc284fed81cd01b2422150d7b1d04b59679e1c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartal=20L=C3=A6arsson?= Date: Thu, 25 Jun 2026 13:07:17 +0100 Subject: [PATCH] also read ops for admin --- internal/web/templates/index.html | 3 +++ 1 file changed, 3 insertions(+) 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' \