diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-06 14:19:56 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-06 14:19:56 -0800 |
commit | 4d46c0631703483c62c90f084aa559f85705ad61 (patch) | |
tree | 2bfaff2a0333fba79146369a735d5a9641d0b028 /system/api/handlers.go | |
parent | 9bcd849014d8986e72220dc9d8d02888c3dd7103 (diff) |
/*post?s*/ => /*content?s*/ substitution
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r-- | system/api/handlers.go | 4 |
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") |