mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
fixed typo
This commit is contained in:
parent
dc477a2df1
commit
067f60cefa
@ -10,11 +10,11 @@ class ExampleLogHandler : public crow::ILogHandler {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ExampleMiddelware
|
struct ExampleMiddleware
|
||||||
{
|
{
|
||||||
std::string message;
|
std::string message;
|
||||||
|
|
||||||
ExampleMiddelware()
|
ExampleMiddleware()
|
||||||
{
|
{
|
||||||
message = "foo";
|
message = "foo";
|
||||||
}
|
}
|
||||||
@ -41,9 +41,9 @@ struct ExampleMiddelware
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
crow::App<ExampleMiddelware> app;
|
crow::App<ExampleMiddleware> app;
|
||||||
|
|
||||||
app.get_middleware<ExampleMiddelware>().setMessage("hello");
|
app.get_middleware<ExampleMiddleware>().setMessage("hello");
|
||||||
|
|
||||||
CROW_ROUTE(app, "/")
|
CROW_ROUTE(app, "/")
|
||||||
.name("hello")
|
.name("hello")
|
||||||
|
Loading…
Reference in New Issue
Block a user