summaryrefslogtreecommitdiff
path: root/srv/src/http/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/api.go')
-rw-r--r--srv/src/http/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/srv/src/http/api.go b/srv/src/http/api.go
index eb7990f..44b9170 100644
--- a/srv/src/http/api.go
+++ b/srv/src/http/api.go
@@ -202,7 +202,7 @@ func (a *api) blogHandler() http.Handler {
mux.Handle("/posts/", http.StripPrefix("/posts",
apiutil.MethodMux(map[string]http.Handler{
"GET": a.renderPostHandler(),
- "POST": a.postPostHandler(false),
+ "POST": a.postPostHandler(),
"DELETE": a.deletePostHandler(false),
"PREVIEW": a.previewPostHandler(),
}),
@@ -223,7 +223,7 @@ func (a *api) blogHandler() http.Handler {
apiutil.MethodMux(map[string]http.Handler{
"GET": a.renderDraftPostHandler(),
- "POST": a.postPostHandler(true),
+ "POST": a.postDraftPostHandler(),
"DELETE": a.deletePostHandler(true),
"PREVIEW": a.previewPostHandler(),
}),