Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
example_routes.h
Go to the documentation of this file.
1#pragma once
2
3#include <uwebsockets/App.h>
4
5#include "api/web_api.h"
6
7namespace mm::example {
8
20
21} // namespace mm::example
Registers routes whose handlers run off the event loop.
Definition router.h:274
Example application namespace — the starting point for a C++ HTTP-endpoint plug-in.
Definition example_cyclic_task.cc:9
void registerRoutes(mm::api::Router &router, const mm::api::RouteContext &ctx)
Registers the example application's HTTP routes (/api/example/...) on app.
Definition example_routes.cc:11
The live collaborators a route plug-in needs, handed to it at registration time.
Definition web_api.h:51