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,14 @@
|
||||
// Route: GET /redirect/here (temporary vs permanent)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto temp = f.client->get("/redirect/here");
|
||||
check(temp.status == 302, "default is temporary");
|
||||
check(temp.headers.get("Location") == "/health", "location set");
|
||||
auto perm = f.client->get("/redirect/here?mode=perm");
|
||||
check(perm.status == 301, "perm mode is permanent");
|
||||
return finish("redirect/here");
|
||||
}
|
||||
Reference in New Issue
Block a user