diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:31:23 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:31:23 +0200 |
commit | e78a940d37e8ab614fd566ee840d00fbaa577c40 (patch) | |
tree | c2507e212f482ddb7fef9c946d6f20aaf7780059 /src/main.cpp | |
parent | 36c2918c9980a343a50921e9f3443f39db82b7a2 (diff) | |
download | n_core-e78a940d37e8ab614fd566ee840d00fbaa577c40.tar.gz n_core-e78a940d37e8ab614fd566ee840d00fbaa577c40.zip |
fix description being an extra field of command annotation
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8e0b442..8289584 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,10 +19,10 @@ int main() { crow::SimpleApp app; - auto createPlainDescriptionFromText = [](std::string const &text) -> std::queue<crow::json::wvalue> * { - auto reply_queue = new std::queue<crow::json::wvalue>; - reply_queue->emplace(Response::create_text(text)); - return reply_queue; + auto createPlainDescriptionFromText = [](std::string const &text) -> std::vector<crow::json::wvalue> * { + auto reply_vector = new std::vector<crow::json::wvalue>; + reply_vector->emplace_back(Response::create_text(text)); + return reply_vector; }; // command --> handler |