Full C++23 framework tree: runtime, observability, security, data, app, realtime, supervisor, clients, CLI, example plus enterprise tenancy, audit, operability, governance, supplychain. Postgres via docker compose for tests.
15 lines
479 B
C++
15 lines
479 B
C++
// Route: /routing/routers/nested/deep (nested router include)
|
|
#include "support/Assert.hpp"
|
|
|
|
using namespace molo::example::test;
|
|
|
|
int main() {
|
|
Fixture f;
|
|
auto res = f.client->get("/routing/routers/nested/deep");
|
|
check(res.status == 200, "status 200");
|
|
check(contains(res.body, "\"nested\":true"), "nested router reached");
|
|
auto shallow = f.client->get("/routing/routers");
|
|
check(shallow.status == 404, "prefix alone is 404");
|
|
return finish("routing/routers");
|
|
}
|