mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
JSON_UNESCAPED_SLASHES
This commit is contained in:
@@ -50,17 +50,17 @@ Route::middleware([])
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
Route::get('btc-map-communities', function () {
|
Route::get('btc-map-communities', function () {
|
||||||
return \App\Models\Meetup::query()
|
return response()->json(\App\Models\Meetup::query()
|
||||||
->with([
|
->with([
|
||||||
'city.country',
|
'city.country',
|
||||||
])
|
])
|
||||||
->where('community', '=', 'einundzwanzig')
|
// ->where('community', '=', 'einundzwanzig')
|
||||||
->whereHas('city',
|
// ->whereHas('city',
|
||||||
fn($query) => $query
|
// fn($query) => $query
|
||||||
->whereNotNull('cities.simplified_geojson')
|
// ->whereNotNull('cities.simplified_geojson')
|
||||||
->whereNotNull('cities.population')
|
// ->whereNotNull('cities.population')
|
||||||
->whereNotNull('cities.population_date')
|
// ->whereNotNull('cities.population_date')
|
||||||
)
|
// )
|
||||||
->get()
|
->get()
|
||||||
->map(fn($meetup) => [
|
->map(fn($meetup) => [
|
||||||
'id' => $meetup->slug,
|
'id' => $meetup->slug,
|
||||||
@@ -79,7 +79,9 @@ Route::middleware([])
|
|||||||
'population' => $meetup->city->population,
|
'population' => $meetup->city->population,
|
||||||
'population:date' => $meetup->city->population_date,
|
'population:date' => $meetup->city->population_date,
|
||||||
],
|
],
|
||||||
]);
|
])
|
||||||
|
->toArray(), 200,
|
||||||
|
['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_SLASHES);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user