From 70c1cdfd8f34472761fe5ec97f0713990c1b4f5b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 5 Sep 2018 21:23:41 +0300 Subject: Add multi-tenancy support --- mod/module.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mod/module.hxx') diff --git a/mod/module.hxx b/mod/module.hxx index 127cdab..25dce43 100644 --- a/mod/module.hxx +++ b/mod/module.hxx @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -70,6 +71,13 @@ namespace brep // class handler: public web::handler { + public: + // If not empty, denotes the repository tenant the request is for. + // Extracted by the handler implementation from the request (URL path, + // parameters, etc). + // + string tenant; + // Diagnostics. // protected: @@ -89,7 +97,7 @@ namespace brep // Set to true when the handler is successfully initialized. // - bool initialized_ {false}; + bool initialized_ = false; // Implementation details. // -- cgit v1.1