diff options
Diffstat (limited to 'response.cpp')
-rw-r--r-- | response.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/response.cpp b/response.cpp index a6f55e2..706090e 100644 --- a/response.cpp +++ b/response.cpp @@ -37,6 +37,8 @@ public: { } + // GetTarget() == GetPluginPath() + GetRelativePath() + const Path& GetPath() const {return m_path;} std::string GetPluginName() const {return m_path.params.at("plugin");} // can throw std::out_of_range @@ -146,7 +148,7 @@ std::unordered_map<std::string, std::function<std::string(RequestContext&)>> Get {"rel_target", [](RequestContext& req_ctx) {return req_ctx.GetRelativePath();}}, - {"target", [](RequestContext& req_ctx) {return req_ctx.GetTarget();}}, + {"target", [](RequestContext& req_ctx) {return req_ctx.GetTarget();}}, // target == plugin_path / rel_target }; std::string GetRequestParam(const std::string& key, RequestContext& req_ctx) |