This commit is contained in:
vfs committed 2026-05-15 20:19:32 +02:00
1 parent 529bb6336e
commit 4855255373
4 files changed
+69 -18

No files matched your search

+5
View File
@@ -8,6 +8,11 @@ import (
)
func (api *Api) Vote(w http.ResponseWriter, r *http.Request) {
if authHeader := r.Header.Get("Authorization"); authHeader != "" {
api.errorResponse(w, r, data.ErrAuthenticatedVoteRejected)
return
}
var input struct {
IssueID int64 `json:"issue_id"`
OptionID int64 `json:"option_id"`