mirror of
https://gitlab.com/niansa/commsy-rest.git
synced 2025-03-06 20:48:27 +01:00
Little coded style improvement
This commit is contained in:
parent
5fb5c88c8f
commit
32051f112c
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
@ -19,9 +19,9 @@ int main() {
|
|||
|
||||
app().registerHandler("/fetchList?url={serverUrl}&sid={sid}&room={room}&startId={startId}&maxPosts={_maxPosts}",
|
||||
[](const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback,
|
||||
const std::string &serverUrl, const std::string &sid, const std::string &room, const std::string &startId, const std::string& _maxPosts)
|
||||
const std::string &serverUrl, const std::string &sid, const std::string &room, const std::string &startId, std::string maxPosts)
|
||||
{
|
||||
std::string maxPosts = _maxPosts;
|
||||
//std::string maxPosts = _maxPosts;
|
||||
if (maxPosts.empty()) {
|
||||
maxPosts = "0";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue