diff --git a/tests/external_definition/main.cpp b/tests/external_definition/main.cpp index 551374f82..2fa660233 100644 --- a/tests/external_definition/main.cpp +++ b/tests/external_definition/main.cpp @@ -1,8 +1,10 @@ // Testing whether crow routes can be defined in an external function. #include "crow.h" -void define_endpoints(crow::SimpleApp& app) { - CROW_ROUTE(app, "/") ([]() { +void define_endpoints(crow::SimpleApp& app) +{ + CROW_ROUTE(app, "/") + ([]() { return "Hello, world!"; }); CROW_WEBSOCKET_ROUTE(app, "/ws")