Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
soehrl committed Nov 7, 2022
1 parent f437236 commit 08599b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/external_definition/main.cpp
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 08599b0

Please sign in to comment.