Skip to content

Commit 374ea63

Browse files
committed
fixed review findings
1 parent a3064b2 commit 374ea63

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ IF(CPP_STARTER_USE_BOOST_BEAST)
1515
ENDIF()
1616

1717
# Crow
18-
IF(CPP_STARTER_USE_BOOST_BEAST)
18+
IF(CPP_STARTER_USE_CROW)
1919
MESSAGE("Using Crow")
2020
ADD_SUBDIRECTORY(crow)
2121
ENDIF()

src/crow/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ int main()
2525

2626
CROW_ROUTE(app, "/json")
2727
([] {
28-
crow::json::wvalue returnValue({ { "message", "Hello, World!" } });
29-
returnValue["message2"] = "Hello, World.. Again!";
30-
return returnValue;
28+
return crow::json::wvalue({ { "message", "Hello, World!" }, {"message2", "Hello, World.. Again!"} });
3129
});
3230

3331
CROW_ROUTE(app, "/custom")
34-
([] {
32+
([]() {
3533
return a();
3634
});
3735

0 commit comments

Comments
 (0)