summaryrefslogtreecommitdiff
path: root/src/chttpd.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-22 09:56:54 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:46 -0400
commit4a4c4edd323db00d360db3355c5876b4f14a69a4 (patch)
tree569ef4f7e3a49488a1eec2e87ce23a553c1d2e6a /src/chttpd.erl
parent89ccaa276043a979ab38e7c90e581d2b220261ea (diff)
switch to 0.11-style (3-arity) design handlers, fix _show
_list and _update still need to be fixed, and _view reopens the ddoc
Diffstat (limited to 'src/chttpd.erl')
-rw-r--r--src/chttpd.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/chttpd.erl b/src/chttpd.erl
index d178604d..a4bb1293 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -202,18 +202,17 @@ db_url_handlers() ->
{<<"_view_cleanup">>, fun chttpd_view:handle_view_cleanup_req/2},
{<<"_compact">>, fun chttpd_db:handle_compact_req/2},
{<<"_design">>, fun chttpd_db:handle_design_req/2},
- {<<"_view">>, fun chttpd_db:handle_db_view_req/2},
{<<"_temp_view">>, fun chttpd_db:handle_temp_view_req/2},
{<<"_changes">>, fun chttpd_db:handle_changes_req/2}
].
design_url_handlers() ->
[
- {<<"_view">>, fun chttpd_view:handle_view_req/2},
- {<<"_show">>, fun chttpd_show:handle_doc_show_req/2},
- {<<"_list">>, fun chttpd_show:handle_view_list_req/2},
- {<<"_update">>, fun chttpd_show:handle_doc_update_req/2},
- {<<"_info">>, fun chttpd_db:handle_design_info_req/2}
+ {<<"_view">>, fun chttpd_view:handle_view_req/3},
+ {<<"_show">>, fun chttpd_show:handle_doc_show_req/3},
+ {<<"_list">>, fun chttpd_show:handle_view_list_req/3},
+ {<<"_update">>, fun chttpd_show:handle_doc_update_req/3},
+ {<<"_info">>, fun chttpd_db:handle_design_info_req/3}
].
% Utilities