|
|
@@ -629,3 +629,11 @@ $app->get('/homepage/jellystat', function ($request, $response, $args) {
|
|
|
->withHeader('Content-Type', 'application/json;charset=UTF-8')
|
|
|
->withStatus($GLOBALS['responseCode']);
|
|
|
});
|
|
|
+$app->post('/homepage/jellystat/metadata', function ($request, $response, $args) {
|
|
|
+ $Organizr = ($request->getAttribute('Organizr')) ?? new Organizr();
|
|
|
+ $Organizr->getJellyStatMetadata($Organizr->apiData($request));
|
|
|
+ $response->getBody()->write(jsonE($GLOBALS['api']));
|
|
|
+ return $response
|
|
|
+ ->withHeader('Content-Type', 'application/json;charset=UTF-8')
|
|
|
+ ->withStatus($GLOBALS['responseCode']);
|
|
|
+});
|