summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 01:02:36 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 01:02:36 -0700
commit515473bdcd15e706b2927ff150d2fbee7fa321d3 (patch)
treed0efbea18038c2a9d2fc8c31cc243e0ff8900869 /system/api/server.go
parentfb57a155b09d7db014ac213496d21b4b43d065fe (diff)
renaming handler and path match for api server - post => content
Diffstat (limited to 'system/api/server.go')
-rw-r--r--system/api/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/api/server.go b/system/api/server.go
index 4468394..70add10 100644
--- a/system/api/server.go
+++ b/system/api/server.go
@@ -8,9 +8,9 @@ import (
func Run() {
http.HandleFunc("/api/types", CORS(Record(typesHandler)))
- http.HandleFunc("/api/posts", CORS(Record(postsHandler)))
+ http.HandleFunc("/api/contents", CORS(Record(postsHandler)))
- http.HandleFunc("/api/post", CORS(Record(postHandler)))
+ http.HandleFunc("/api/content", CORS(Record(postHandler)))
- http.HandleFunc("/api/external/posts", CORS(Record(externalPostsHandler)))
+ http.HandleFunc("/api/content/external", CORS(Record(externalPostHandler)))
}