From a04e53b47fcddf08bc2657a8f6311b9aa32867f7 Mon Sep 17 00:00:00 2001 From: Maxime Date: Wed, 5 Feb 2025 09:25:21 +0100 Subject: [PATCH] add routes in main --- handlers/application/solidarity_service.go | 1 - main.go | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/handlers/application/solidarity_service.go b/handlers/application/solidarity_service.go index 5f1ebe2..0ed0af8 100644 --- a/handlers/application/solidarity_service.go +++ b/handlers/application/solidarity_service.go @@ -143,7 +143,6 @@ func (h *ApplicationHandler) SolidarityService(w http.ResponseWriter, r *http.Re drivers, err := h.services.GRPC.SolidarityService.GetAllDrivers(context.TODO(), &emptypb.Empty{}) bookings, err := h.services.GRPC.SolidarityService.GetAllBookingsSolidarity(context.TODO(), &emptypb.Empty{}) - parcourmobAccounts, err := h.beneficiaries(r) if err != nil { fmt.Println(err) diff --git a/main.go b/main.go index b97e3e7..1e754c5 100755 --- a/main.go +++ b/main.go @@ -138,9 +138,9 @@ func main() { /*********************** CODE GROUP **************************/ //=================================silvermobi==================================== - application.HandleFunc("/solidarity_service/", applicationHandler.SolidarityService) - application.HandleFunc("/solidarity_service/create/{id}", applicationHandler.DriversJourney) - application.HandleFunc("/solidarity_service/driver/create", applicationHandler.CreateDriver) + application.HandleFunc("/solidarity_service/", applicationHandler.SolidarityService) + application.HandleFunc("/solidarity_service/create/{id}", applicationHandler.DriversJourney) + application.HandleFunc("/solidarity_service/driver/create", applicationHandler.CreateDriver) appGroup := application.PathPrefix("/group_module").Subrouter()