diff --git a/filters/controllers_valid_json.h b/filters/controllers_valid_json.h index 2eb8d19..7f4ab4d 100644 --- a/filters/controllers_valid_json.h +++ b/filters/controllers_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::controllers { - namespace controllers + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } } diff --git a/filters/relays_valid_json.h b/filters/relays_valid_json.h index 1441e82..707b924 100644 --- a/filters/relays_valid_json.h +++ b/filters/relays_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::relays { - namespace relays + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } } diff --git a/filters/schedules_valid_json.h b/filters/schedules_valid_json.h index e963857..0097bf7 100644 --- a/filters/schedules_valid_json.h +++ b/filters/schedules_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::schedules { - namespace schedules + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } }