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.
17 lines
560 B
C++
17 lines
560 B
C++
// 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");
|
|
}
|