From 0660c2d5e3d45821c718632221b7b1c05d78dad8 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Fri, 10 Jan 2025 18:27:25 -0500 Subject: [PATCH] chore: remove routing duplicate route not sure what exactly this does. Guessing it didn't affect the semantics, but still better to clean up. --- server/routing.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/routing.go b/server/routing.go index fe4fd45..4c0886d 100644 --- a/server/routing.go +++ b/server/routing.go @@ -73,9 +73,6 @@ func (svr *Server) registerRoutes(r *mux.Router) { subrouterPOST.HandleFunc("", // commitment is calculated by the server using the body data withLogging(withMetrics(svr.handlePostOPGenericCommitment, svr.m, commitments.OptimismGeneric), svr.log), ) - subrouterPOST.HandleFunc("/", // commitment is calculated by the server using the body data - withLogging(withMetrics(svr.handlePostOPGenericCommitment, svr.m, commitments.OptimismGeneric), svr.log), - ) r.HandleFunc("/health", withLogging(svr.handleHealth, svr.log)).Methods("GET") }