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:
2026-10-24 01:59:27 +02:00
co-authored by Claude Sonnet 5.5
parent 16a0bb0de4
commit 00af65613d
36 changed files with 1274 additions and 138 deletions
+7
View File
@@ -12,6 +12,7 @@
#include "Http.hpp"
#include "Router.hpp"
#include "Stats.hpp"
namespace molo::example::fw {
@@ -46,7 +47,10 @@ class Application : public std::enable_shared_from_this<Application> {
const std::string& name_prefix = "");
void mount(const std::string& path, std::shared_ptr<Application> sub);
// Outermost entry. Records one RequestSample per call when a Stats sink
// is attached with observe().
Response dispatch(Request req);
void observe(std::shared_ptr<Stats> stats);
const std::vector<Route>& routes() const;
@@ -54,6 +58,9 @@ class Application : public std::enable_shared_from_this<Application> {
Response dispatch_inner(Request req, int depth);
Response run_chain(Request req, int depth);
Response dispatch_untimed(Request req);
std::shared_ptr<Stats> stats_;
Router router_;
std::vector<std::pair<MiddlewareSlot, Middleware>> middlewares_;
std::vector<std::pair<std::string, std::shared_ptr<Application>>> mounts_;