mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-06 16:03:10 +00:00
fix: add cors to merkle proof endpoint
This commit is contained in:
parent
6c4bc43016
commit
cd8fa7e604
@ -77,6 +77,7 @@ type MerkleProofResponse struct {
|
||||
}
|
||||
|
||||
func (d *DebugService) getV1MerkleProof(w http.ResponseWriter, req *http.Request) {
|
||||
enableCors(&w)
|
||||
commitmentReq := chi.URLParam(req, "commitment")
|
||||
if commitmentReq == "" {
|
||||
writeErrResponse(w, nil, fmt.Errorf("commitment is empty"), http.StatusBadRequest)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user