Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
Removed unnecesary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tahirmurata committed Oct 6, 2024
1 parent bfe4c8b commit 8f0e0e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func TypeMiddleware(nodeTypes ...sqlc.NodeType) echo.MiddlewareFunc {
return next(c)
}
}
slog.Error("node type middleware", "error", "invalid node type")
return echo.ErrBadRequest
}
}
Expand All @@ -59,10 +58,9 @@ func (s *Server) ApiRoutes() *echo.Echo {
return r.Header.Get("Fly-Client-IP")
}
api.Use(middleware.CORSWithConfig(middleware.CORSConfig{
// // AllowOrigins: []string{"http://localhost:4000", "https://aicj.io"},
// AllowOrigins: []string{"http://localhost:4000", "https://aicj.io"},
AllowMethods: []string{http.MethodGet, http.MethodPatch, http.MethodPost},
}))
// api.Use(middleware.CORS())

// api.Use(middleware.RateLimiter(middleware.NewRateLimiterMemoryStore(rate.Limit(20))))
// limiterStore := middleware.NewRateLimiterMemoryStore(rate.Limit(10))
Expand Down

0 comments on commit 8f0e0e3

Please sign in to comment.