From d3c231496dff8bc087d0db7f6f1d07c7a01c79b4 Mon Sep 17 00:00:00 2001 From: killi1812 Date: Tue, 3 Jun 2025 14:26:35 +0200 Subject: [PATCH] Script update and reponde to / --- httpServer/endpoint.go | 1 + scipt/create_vehicle.sh | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/httpServer/endpoint.go b/httpServer/endpoint.go index 1d4d0c4..8c26f32 100644 --- a/httpServer/endpoint.go +++ b/httpServer/endpoint.go @@ -13,6 +13,7 @@ import ( func setupHandlers(router *gin.Engine) { // TODO: Replace gin default logger with zap // router.Use(gin.Recovery()) + router.GET("/", func(ctx *gin.Context) {}) router.Use(middleware.CorsHeader()) api := router.Group("/api") diff --git a/scipt/create_vehicle.sh b/scipt/create_vehicle.sh index c2394c5..df592bf 100755 --- a/scipt/create_vehicle.sh +++ b/scipt/create_vehicle.sh @@ -5,13 +5,14 @@ # --- Configuration --- # !!! REPLACE WITH YOUR ACTUAL API BASE URL !!! -API_BASE_URL="http://localhost:8090/api" # Example: might be http://localhost:8080 +API_BASE_URL="http://192.168.0.127:8090/api" # Example: might be http://localhost:8080 # --- Existing User Credentials and UUID --- # !!! REPLACE WITH THE DETAILS OF AN EXISTING USER !!! -EXISTING_USER_EMAIL="bash.user@example.com" +# EXISTING_USER_EMAIL="bash.user@example.com" +EXISTING_USER_EMAIL="lkovacic@test.hr" EXISTING_USER_PASSWORD='Pa$$w0rd' -EXISTING_USER_UUID="9fea1366-82fe-4775-ba1e-772b77105bb0" # e.g., "a1b2c3d4-e5f6-7890-1234-567890abcdef" +EXISTING_USER_UUID="d0499fb2-9d15-47c0-9cfc-408295407349" # e.g., "a1b2c3d4-e5f6-7890-1234-567890abcdef" # --- New Vehicle Details --- # Generate a somewhat unique identifier for testing vehicle details