Fix jwt-token
This commit is contained in:
12
clear_database.sh
Normal file
12
clear_database.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Clear database via API calls (if we add the endpoint)
|
||||
|
||||
API_BASE="http://selfservice.cqers.com/drones/api"
|
||||
|
||||
echo "🗑️ Clearing database via API..."
|
||||
|
||||
# Clear detections
|
||||
curl -X DELETE "$API_BASE/detections/clear" \
|
||||
-H "Content-Type: application/json"
|
||||
|
||||
echo "✅ Database cleared"
|
||||
Reference in New Issue
Block a user