Skip to content

Commit

Permalink
Säkerställ att "data" alltid skickas med i apisvar för nearby events
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed Jun 6, 2024
1 parent 9725692 commit 50036c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function eventsNearby(Request $request, Response $response) {

$api_app = $request->get('app');

$json["data"] = [];

// create array with data is a format more suited for app and web
/** @var CrimeEvent $item */
foreach ($events as $item) {
Expand Down

0 comments on commit 50036c1

Please sign in to comment.