From a900268cfc169699d7921ce747921452e4d4cdb0 Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Thu, 8 Jun 2023 13:07:49 -0400 Subject: [PATCH] Updates endpoint to /authorization --- pkg/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/api.go b/pkg/api.go index 63f57cc..5af7162 100644 --- a/pkg/api.go +++ b/pkg/api.go @@ -58,10 +58,11 @@ func (a *API) init() { router.HandleFunc("/health", a.handleHealthCheck) // Adds an endpoint to retrieve the builder ID + // TODO(@ckartik): Ensure this response is signed to ensure validity router.HandleFunc("/builder", a.handleBuilderID) // Adds an endpoint to get commitment to the builder by searcher address - router.HandleFunc("/commitment", a.handleSearcherCommitment) + router.HandleFunc("/authorization", a.handleSearcherCommitment) // TODO(@ckartik): Guard this to only by a requset made form an authorized internal service router.HandleFunc(PathSubmitBlock, handler(a.submitBlock))