Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ func NewApiServer(config config.Config) *ApiServer {
g.Get("/coins/:mint/insights", app.v1CoinInsights)
g.Get("/coins/:mint/members", app.v1CoinsMembers)
g.Post("/coins", app.v1CreateCoin)
g.Post("/coins/:mint", app.v1UpdateCoin)
Comment thread
dharit-tan marked this conversation as resolved.
}

// Comms
Expand Down
3 changes: 3 additions & 0 deletions api/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ func testGetWithWallet(t *testing.T, app *ApiServer, path string, walletAddress
func testPostWithWallet(t *testing.T, app *ApiServer, path string, walletAddress string, body []byte, headers map[string]string, dest ...any) (int, []byte) {
req := httptest.NewRequest("POST", path, bytes.NewBuffer(body))

// Set default Content-Type header
req.Header.Set("Content-Type", "application/json")

// Add signature headers if wallet address is provided
if walletAddress != "" {
sigData := testdata.GetSignatureData(walletAddress)
Expand Down
Loading
Loading