mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
19 lines
260 B
C++
19 lines
260 B
C++
|
#define CROW_MAIN
|
||
|
#include "crow.h"
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
crow::SimpleApp app;
|
||
|
|
||
|
crow::Blueprint bp("bp_prefix");
|
||
|
|
||
|
CROW_BP_ROUTE(app, bp, "/")
|
||
|
([]() {
|
||
|
return "Hello world!";
|
||
|
});
|
||
|
|
||
|
app.register_blueprint(bp);
|
||
|
|
||
|
app.port(18080).run();
|
||
|
}
|