diff --git a/api/comment_count.go b/api/comment_count.go index 7c54959..8533fae 100644 --- a/api/comment_count.go +++ b/api/comment_count.go @@ -20,8 +20,8 @@ func commentCount(domain string, path string) (int, error) { func commentCountHandler(w http.ResponseWriter, r *http.Request) { type request struct { - Domain *string `json:"domain"` - Path *string `json:"path"` + Domain *string `json:"domain"` + Path *string `json:"path"` } var x request diff --git a/api/page.go b/api/page.go index 9ab9641..4fda357 100644 --- a/api/page.go +++ b/api/page.go @@ -3,8 +3,8 @@ package main import () type page struct { - Domain string `json:"domain"` - Path string `json:"path"` - IsLocked bool `json:"isLocked"` - CommentCount int `json:"commentCount"` + Domain string `json:"domain"` + Path string `json:"path"` + IsLocked bool `json:"isLocked"` + CommentCount int `json:"commentCount"` } diff --git a/api/page_update.go b/api/page_update.go index c74bfb8..1930271 100644 --- a/api/page_update.go +++ b/api/page_update.go @@ -29,10 +29,10 @@ func pageUpdate(p page) error { func pageUpdateHandler(w http.ResponseWriter, r *http.Request) { type request struct { - CommenterToken *string `json:"commenterToken"` - Domain *string `json:"domain"` - Path *string `json:"path"` - Attributes *page `json:"attributes"` + CommenterToken *string `json:"commenterToken"` + Domain *string `json:"domain"` + Path *string `json:"path"` + Attributes *page `json:"attributes"` } var x request