Mercurial > hg > orthanc
diff Core/RestApi/RestApi.cpp @ 895:7e8cde5905fd plugins
allow superposition of REST handlers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Jun 2014 17:47:58 +0200 |
parents | a811bdf8b8eb |
children | 7d88f3f4a3b3 |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.cpp Mon Jun 16 17:31:09 2014 +0200 +++ b/Core/RestApi/RestApi.cpp Mon Jun 16 17:47:58 2014 +0200 @@ -180,7 +180,7 @@ IsDeleteAccepted(uri)); } - void RestApi::Handle(HttpOutput& output, + bool RestApi::Handle(HttpOutput& output, HttpMethod method, const UriComponents& uri, const Arguments& headers, @@ -255,6 +255,8 @@ << " not allowed on: " << Toolbox::FlattenUri(uri); output.SendMethodNotAllowedError(GetAcceptedMethods(uri)); } + + return true; } void RestApi::Register(const std::string& path,