chore: add mobile app

This commit is contained in:
2026-02-07 22:33:02 +01:00
parent db34640acc
commit e89384ad4e
29327 changed files with 3886944 additions and 12 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
# Version avec validation GPS + Simulation déplacement livreur
# ============================================
BASE_URL="https://c80319bf2e28244c-90-50-148-138.serveousercontent.com"
BASE_URL="http://172.20.167.237:8080"
ADMIN_TOKEN=""
CABINE_TOKEN=""
LIVREUR_TOKEN=""
@@ -119,7 +119,7 @@ CLIENT_TOKEN=$(extract_token "$CLIENT_LOGIN")
print_test "Création client"
CLIENT_REGISTER=$(curl -s -X POST "$BASE_URL/api/v1/auth/register" \
-H "Content-Type: application/json" \
-d "{\"username\":\"salut\",\"password\":\"salut1234_\",\"role\":\"client\",\"nom\": \"Dupont\",\"prenom\": \"Jean\",\"telephone\": \"+33612345678\"}")
-d "{\"username\":\"slut\",\"password\":\"salut123_\",\"role\":\"client\",\"nom\": \"Dupont\",\"prenom\": \"Jean\",\"telephone\": \"+33612345678\"}")
CLIENT_TOKEN=$(extract_token "$CLIENT_REGISTER")
if [ -n "$CLIENT_TOKEN" ]; then
print_success "Client créé et authentifié"