mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-18 05:40:29 -04:00
Restrict internal/send-search-notifications with API key
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user