From 515473bdcd15e706b2927ff150d2fbee7fa321d3 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 3 Nov 2016 01:02:36 -0700 Subject: renaming handler and path match for api server - post => content --- system/api/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/api/server.go') 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))) } -- cgit v1.2.3