WIP on Json doc updates
This commit is contained in:
1 parent
472fde5a9a
commit
07c46fe668
2 files changed
+33
-12
No files matched your search
@@ -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