feat(workflow): example stats page with embedded Chart.js, inline form validation errors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,7 @@ std::shared_ptr<fw::Application> build_application(Services& services) {
|
||||
load_embedded(services);
|
||||
|
||||
auto app = std::make_shared<fw::Application>();
|
||||
app->observe(services.stats);
|
||||
app->use(fw::MiddlewareSlot::Errors, fw::errors_middleware());
|
||||
app->use(fw::MiddlewareSlot::Observability, fw::request_id_middleware());
|
||||
app->use(fw::MiddlewareSlot::SessionAuth,
|
||||
@@ -46,6 +47,10 @@ std::shared_ptr<fw::Application> build_application(Services& services) {
|
||||
register_ops_demo(ops, services);
|
||||
app->include_router("", ops);
|
||||
|
||||
fw::Router stats;
|
||||
register_stats_demo(stats, services);
|
||||
app->include_router("", stats);
|
||||
|
||||
register_chain_demo(app, services);
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user