WIP on Json doc updates
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user