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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user