fix(fediverse): add `index` to post controller-method to access post's jsonld contents

This commit is contained in:
Yassine Doghri 2023-09-14 13:23:19 +00:00
parent 27a04bd0df
commit 35142d8e56
1 changed files with 3 additions and 3 deletions

View File

@ -228,11 +228,11 @@ $routes->group('@(:podcastHandle)', static function ($routes): void {
'alternate-content' => [
'application/activity+json' => [
'namespace' => 'Modules\Fediverse\Controllers',
'controller-method' => 'PostController/$2',
'controller-method' => 'PostController::index/$2',
],
'application/ld+json; profile="https://www.w3.org/ns/activitystreams' => [
'namespace' => 'Modules\Fediverse\Controllers',
'controller-method' => 'PostController/$2',
'namespace' => 'Modules/Fediverse/Controllers',
'controller-method' => 'PostController::index\$2',
],
],
'filter' => 'allow-cors',