MantisBase v0.4.9
Loading...
Searching...
No Matches
router.h File Reference

HTTP router: route registration, schema cache, CORS, and built-in API endpoints. More...

#include <memory>
#include <vector>
#include <set>
#include <atomic>
#include <shared_mutex>
#include <nlohmann/json.hpp>
#include <drogon/utils/HttpConstraint.h>
#include "route_registry.h"
#include "models/entity.h"
#include "../utils/utils.h"
#include "types.h"
#include "drogon/drogon_callbacks.h"
#include "mantisbase/utils/snowflake.hpp"
Include dependency graph for router.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mb::MbRouter
 Central HTTP router and schema cache for a MantisBase instance. More...

Namespaces

namespace  mb

Detailed Description

HTTP router: route registration, schema cache, CORS, and built-in API endpoints.

Bridges MantisBase handler/middleware chains (MbRouteRegistry) to Drogon's HTTP server. Also owns MbSSEMgr (SSE + WebSocket realtime) and the entity schema cache used on every CRUD request.