First pass of features

This commit is contained in:
louiswhit committed 2026-03-30 14:53:13 -05:00
1 parent 1a65e69d25
commit 6353f9c9b4
54 files changed
+5409 -128

No files matched your search

+13 -1
View File
@@ -20,4 +20,16 @@ function ensureExportDirectory() {
if (!file_exists(EXPORT_DESTINATION)) {
mkdir(EXPORT_DESTINATION, 0755, true);
}
}
}
/**
* Base path prefix for JSON API under this app (e.g. /familyHub/api).
*/
function familyHubWebApiBase(): string {
$sd = dirname($_SERVER['SCRIPT_NAME'] ?? '/');
$sd = rtrim(str_replace('\\', '/', $sd), '/');
if ($sd === '' || $sd === '/') {
return '/api';
}
return $sd . '/api';
}