rename JSON field 'hashcash' to 'pow_token' in API request body

This commit is contained in:
user
2026-03-10 10:44:02 -07:00
parent ba304e322e
commit 5b4ac75b23
4 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import "time"
// SessionRequest is the body for POST /api/v1/session.
type SessionRequest struct {
Nick string `json:"nick"`
Hashcash string `json:"hashcash,omitempty"`
Hashcash string `json:"pow_token,omitempty"` //nolint:tagliatelle
}
// SessionResponse is the response from session creation.