feat(api): expose workspace branding to mobile clients

This commit is contained in:
poyrazavsever
2026-07-17 21:56:37 +03:00
parent ae370b4313
commit cb2ed90046
7 changed files with 102 additions and 17 deletions
+8
View File
@@ -21,6 +21,9 @@ for (const value of [
'"auth.device-pairing"',
'status: "planned"',
"minimumSupportedVersion",
"workspaceName",
"metaTitle",
"faviconUrl",
]) {
assert.ok(contracts.includes(value), `Missing API contract marker: ${value}`);
}
@@ -38,6 +41,11 @@ assert.doesNotMatch(
/getSession|requireSession|authorization/i,
"Discovery must remain public and session-independent",
);
assert.match(
read("app/api/v1/me/route.ts"),
/getUserPreferences/,
"Authenticated mobile metadata must expose the persisted user color mode",
);
for (const route of requiredRoutes.slice(1)) {
const content = read(route);