Fix formatting

This commit is contained in:
Simon Oehrl 2022-11-07 13:45:59 +01:00
parent 8b34504741
commit d0929ae66d
1 changed files with 4 additions and 2 deletions

View File

@ -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")