mirror of
https://gitlab.com/niansa/commsy-rest.git
synced 2025-03-06 20:48:27 +01:00
Removed hello world
This commit is contained in:
parent
eec55cacb7
commit
d0ab6c1c94
1 changed files with 0 additions and 9 deletions
9
main.cpp
9
main.cpp
|
@ -8,15 +8,6 @@ using namespace drogon;
|
|||
|
||||
int main() {
|
||||
// Register handlers
|
||||
app().registerHandler("/",
|
||||
[](const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback)
|
||||
{
|
||||
auto resp = HttpResponse::newHttpResponse();
|
||||
resp->setBody("Hello world!");
|
||||
callback(resp);
|
||||
}, {Get}
|
||||
);
|
||||
|
||||
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, std::string maxPosts)
|
||||
|
|
Loading…
Add table
Reference in a new issue