feat: implement MoloApp plans 01-15 with integration
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.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Route: GET /embedded/{name} (embedded C++ assets)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto res = f.client->get("/embedded/hello.txt");
|
||||
check(res.status == 200, "status 200");
|
||||
check(res.headers.get("X-Asset-Source") == "embedded",
|
||||
"served from embedded bundle");
|
||||
check(contains(res.body, "embedded assets"), "bundle content served");
|
||||
auto missing = f.client->get("/embedded/nope.txt");
|
||||
check(missing.status == 404, "missing asset is 404");
|
||||
return finish("embedded/assets");
|
||||
}
|
||||
Reference in New Issue
Block a user