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 () {
|
||||
return \App\Models\Meetup::query()
|
||||
return response()->json(\App\Models\Meetup::query()
|
||||
->with([
|
||||
'city.country',
|
||||
])
|
||||
->where('community', '=', 'einundzwanzig')
|
||||
->whereHas('city',
|
||||
fn($query) => $query
|
||||
->whereNotNull('cities.simplified_geojson')
|
||||
->whereNotNull('cities.population')
|
||||
->whereNotNull('cities.population_date')
|
||||
)
|
||||
// ->where('community', '=', 'einundzwanzig')
|
||||
// ->whereHas('city',
|
||||
// fn($query) => $query
|
||||
// ->whereNotNull('cities.simplified_geojson')
|
||||
// ->whereNotNull('cities.population')
|
||||
// ->whereNotNull('cities.population_date')
|
||||
// )
|
||||
->get()
|
||||
->map(fn($meetup) => [
|
||||
'id' => $meetup->slug,
|
||||
@@ -79,7 +79,9 @@ Route::middleware([])
|
||||
'population' => $meetup->city->population,
|
||||
'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