rename JSON field 'hashcash' to 'pow_token' in API request body
All checks were successful
check / check (push) Successful in 2m12s

This commit is contained in:
user
2026-03-10 10:44:02 -07:00
parent 0d563adf31
commit 49517e754a
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.

View File

@@ -147,7 +147,7 @@ func (hdlr *Handlers) handleCreateSession(
) {
type createRequest struct {
Nick string `json:"nick"`
Hashcash string `json:"hashcash,omitempty"`
Hashcash string `json:"pow_token,omitempty"` //nolint:tagliatelle
}
var payload createRequest