.
This commit is contained in:
1 parent
529bb6336e
commit
4855255373
4 files changed
+69
-18
No files matched your search
@@ -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"`
|
||||
|
||||
Reference in new issue
Block a user