WIP on Json doc updates

This commit is contained in:
2025-04-24 19:39:53 -04:00
parent 472fde5a9a
commit 07c46fe668
2 changed files with 33 additions and 12 deletions

View File

@@ -241,4 +241,12 @@ class Json
{
echo self::firstByJsonPath($tableName, $path, $orderBy);
}
/**
* Set the content type of this page's output to JSON
*/
public static function setContentType(): void
{
header('Content-Type: application/json');
}
}