Restrict internal/send-search-notifications with API key

This commit is contained in:
MartinBraquet
2025-09-16 17:54:13 +02:00
parent cf125c1b48
commit 0447b22dd2
8 changed files with 72 additions and 19 deletions

View File

@@ -1,5 +1,21 @@
#!/bin/bash
curl -X POST http://localhost:8088/v0/send-search-notifications
set -e
cd "$(dirname "$0")"/..
source .env
#export url=http://localhost:8088/v0
export url=https://api.compassmeet.com
export endpoint=/internal/send-search-notifications
curl -X POST ${url}${endpoint} \
-H "x-api-key: ${COMPASS_API_KEY}" \
-H "Content-Type: application/json" \
-d '{}'
echo