func Handler(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
	log.Init(req.HTTPMethod, req.Path)

	if ginLambda == nil {
		r := gin.Default()
		r.Use(log.Logger(logrus.StandardLogger()), gin.Recovery()) // Add this middleware to use logrus with gin

		// Map routes to handlers
		routes.RegisterRoutes(r.Group("/api"))

		ginLambda = ginadapter.New(r)
	}

	return ginLambda.ProxyWithContext(ctx, req)
}
// Handler is the main entry point for Lambda. Receives a proxy request and
// returns a proxy response
Handler is the main entry point for Lambda. Receives a proxy request and
returns a proxy response
// Handler is the main entry point for Lambda . Receives a proxy request and // returns a proxy response
func Handler(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
	log.Init(req.HTTPMethod, req.Path)
	if ginLambda == nil {
		r := gin.Default()
		r.Use(log.Logger(logrus.StandardLogger()), gin.Recovery()) 
		routes.RegisterRoutes(r.Group("/api"))
		ginLambda = ginadapter.New(r)
	}
	return ginLambda.ProxyWithContext(ctx, req)
}
func Handler ( ctx context . Context , req events . APIGatewayProxyRequest ) ( events . APIGatewayProxyResponse , error ) { log . Init ( req . HTTPMethod , req . Path ) if ginLambda == nil { r := gin . Default ( ) r . Use ( log . Logger ( logrus . StandardLogger ( ) ) , gin . Recovery ( ) ) routes . RegisterRoutes ( r . Group ( " " ) ) ginLambda = ginadapter . New ( r ) } return ginLambda . ProxyWithContext ( ctx , req ) }
Handler is the main entry point for Lambda.
Handler is the main entry point for Lambda .
// Add this middleware to use logrus with gin // Map routes to handlers