Added auth support and a helper script, targeting frankenphp
This commit is contained in:
parent
8f545c3f67
commit
0783e08fe9
8 changed files with 655 additions and 4 deletions
|
|
@ -2,8 +2,11 @@
|
|||
/**
|
||||
* get_files.php - Recursively scans media directories and returns file structure as JSON
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
require_once __DIR__ . '/auth.php';
|
||||
require_auth(true);
|
||||
|
||||
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue