summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/api/external.go2
-rw-r--r--system/api/server.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/system/api/external.go b/system/api/external.go
index 4a42eb5..c9fb2a7 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -27,7 +27,7 @@ type Mergeable interface {
Approve(req *http.Request) error
}
-func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
+func externalPostHandler(res http.ResponseWriter, req *http.Request) {
if req.Method != http.MethodPost {
res.WriteHeader(http.StatusMethodNotAllowed)
return
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)))
}