feat(api): expose workspace branding to mobile clients
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user