Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/couch_httpd_handlers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,30 @@

-module(couch_httpd_handlers).

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

url_handler(<<"_oauth">>) -> fun couch_httpd_oauth:handle_oauth_req/1;

url_handler(_) -> no_match.

db_handler(_) -> no_match.

design_handler(_) -> no_match.

endpoints(url_handler) ->
[
<<"_oauth">>
];
endpoints(db_handler) ->
[];
endpoints(design_handler) ->
[].

-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").

couch_endpoints_test_() ->
Apps = [couch_epi, couch],
chttpd_httpd_handlers_test_util:endpoints_test(couch, ?MODULE, Apps).

-endif.
184 changes: 0 additions & 184 deletions test/chttpd_endpoints_tests.erl

This file was deleted.