add routes in main
This commit is contained in:
parent
726584b0fb
commit
a04e53b47f
|
@ -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)
|
||||
|
|
6
main.go
6
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()
|
||||
|
|
Loading…
Reference in New Issue