Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down