From 4a4c4edd323db00d360db3355c5876b4f14a69a4 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 22 Jun 2010 09:56:54 -0400 Subject: switch to 0.11-style (3-arity) design handlers, fix _show _list and _update still need to be fixed, and _view reopens the ddoc --- src/chttpd.erl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/chttpd.erl') 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 -- cgit v1.2.3