Skip to content

Commit

Permalink
Update AppController.php
Browse files Browse the repository at this point in the history
missing content type
  • Loading branch information
fiste788 committed Mar 27, 2024
1 parent c986093 commit 6648144
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ public function initialize(): void
EventManager::instance()->on(new GetStreamEventListener());

$this->getCurrentMatchday();
$this->response->withType('json');

}

/**
* @inheritDoc
*/
public function beforeRender(EventInterface $event) {
$this->response = $this->response->withType('application/json');
}

/**
Expand Down

0 comments on commit 6648144

Please sign in to comment.