Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Use dynamic handlers for _db_updates
  • Loading branch information
iilyak committed Jul 17, 2015
1 parent d9f4803 commit ccf500c566d7da24321a54bf273d100f01da257a
Showing 3 changed files with 26 additions and 1 deletion.
@@ -17,6 +17,7 @@
{applications, [
kernel,
stdlib,
couch_epi,
config,
couch_log,
couch_stats,
@@ -0,0 +1,22 @@
% Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
% License for the specific language governing permissions and limitations under
% the License.

-module(global_changes_httpd_handlers).

-export([url_handler/1, db_handler/1, design_handler/1]).

url_handler(<<"_db_updates">>) -> fun global_changes_httpd:handle_global_changes_req/1;
url_handler(_) -> no_match.

db_handler(_) -> no_match.

design_handler(_) -> no_match.
@@ -34,5 +34,7 @@ init([]) ->
5000,
worker,
[global_changes_server]
}
},
chttpd_handlers:provider(
global_changes, global_changes_httpd_handlers)
]}}.

0 comments on commit ccf500c

Please sign in to comment.