33 #ifndef _IDENTT_QUERY_NOTFOUNDSERVICE_HPP_ 34 #define _IDENTT_QUERY_NOTFOUNDSERVICE_HPP_ 41 template <
class HttpServerT>
62 typename std::shared_ptr<HttpServerT> server,
64 :
identt::query::
ServiceBase<HttpServerT>(IDENTT_SERVICE_SCOPE_HTTP | IDENTT_SERVICE_SCOPE_HTTPS)
66 if (!(this->myscope & scope))
return;
67 server->default_resource[
"GET"] =
68 [
this](
typename HttpServerT::RespPtr response,
typename HttpServerT::ReqPtr request) {
71 server->default_resource[
"POST"] =
72 [
this](
typename HttpServerT::RespPtr response,
typename HttpServerT::ReqPtr request) {
83 #endif // _IDENTT_QUERY_NOTFOUNDSERVICE_HPP_ NotFoundService(identt::utils::SharedTable::pointer stptr, typename std::shared_ptr< HttpServerT > server, unsigned int scope)
NotFoundService : constructor.
Definition: NotFoundService.hpp:61
void HttpErrorAction(typename HttpServerT::RespPtr response, typename HttpServerT::ReqPtr request, int ec, const char *em)
HttpErrorAction : Error Action Template no payload maybe template.
Definition: ServiceBase.hpp:85
Definition: ServiceBase.hpp:55
Definition: CryptoBase.hpp:49
Definition: NotFoundService.hpp:42