summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 14:19:56 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 14:19:56 -0800
commit4d46c0631703483c62c90f084aa559f85705ad61 (patch)
tree2bfaff2a0333fba79146369a735d5a9641d0b028 /system/api/handlers.go
parent9bcd849014d8986e72220dc9d8d02888c3dd7103 (diff)
/*post?s*/ => /*content?s*/ substitution
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r--system/api/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index 1d7dc8f..f31a1eb 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -28,7 +28,7 @@ func typesHandler(res http.ResponseWriter, req *http.Request) {
sendData(res, j, http.StatusOK)
}
-func postsHandler(res http.ResponseWriter, req *http.Request) {
+func contentsHandler(res http.ResponseWriter, req *http.Request) {
q := req.URL.Query()
t := q.Get("type")
if t == "" {
@@ -87,7 +87,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) {
sendData(res, j, http.StatusOK)
}
-func postHandler(res http.ResponseWriter, req *http.Request) {
+func contentHandler(res http.ResponseWriter, req *http.Request) {
q := req.URL.Query()
id := q.Get("id")
t := q.Get("type")