Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 8d093bb

Browse files
committed
Add blockingStartupMiddleware to POST purchase
1 parent 9af1aca commit 8d093bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/endpoints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func post(i *jsonAPIHandler, path string, w http.ResponseWriter, r *http.Request
9898
case strings.HasPrefix(path, "/ob/purchases"):
9999
i.POSTPurchases(w, r)
100100
case strings.HasPrefix(path, "/ob/purchase"):
101-
i.POSTPurchase(w, r)
101+
blockingStartupMiddleware(i, w, r, i.POSTPurchase)
102102
case strings.HasPrefix(path, "/ob/cases"):
103103
i.POSTCases(w, r)
104104
case strings.HasPrefix(path, "/ob/publish"):

0 commit comments

Comments
 (0)