mirror of
https://github.com/CrowCpp/Crow.git
synced 2026-01-18 16:31:17 +01:00
19 lines
305 B
C++
19 lines
305 B
C++
#include "crow.h"
|
|
|
|
#include <sys/stat.h>
|
|
|
|
int main()
|
|
{
|
|
crow::SimpleApp app;
|
|
|
|
CROW_ROUTE(app, "/")
|
|
([]() {
|
|
return "Hello, world!";
|
|
});
|
|
|
|
std::string local_socket_path = "example.sock";
|
|
unlink(local_socket_path.c_str());
|
|
app.local_socket_path(local_socket_path).run();
|
|
|
|
}
|