mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
update meetups api, enriched with nextEvent data
This commit is contained in:
@@ -72,11 +72,13 @@ Route::middleware([])
|
||||
return \App\Models\Meetup::query()
|
||||
->where('visible_on_map', true)
|
||||
->with([
|
||||
'city',
|
||||
'meetupEvents',
|
||||
'city.country',
|
||||
])
|
||||
->get()
|
||||
->map(fn($meetup) => [
|
||||
'name' => $meetup->name,
|
||||
'portalLink' => url()->route('meetup.landing', ['country' => $meetup->city->country, 'meetup' => $meetup]),
|
||||
'url' => $meetup->telegram_link ?? $meetup->webpage,
|
||||
'top' => $meetup->github_data['top'] ?? null,
|
||||
'left' => $meetup->github_data['left'] ?? null,
|
||||
@@ -87,6 +89,7 @@ Route::middleware([])
|
||||
'latitude' => (float)$meetup->city->latitude,
|
||||
'twitter_username' => $meetup->twitter_username,
|
||||
'website' => $meetup->webpage,
|
||||
'next_event' => $meetup->nextEvent,
|
||||
]);
|
||||
});
|
||||
Route::get('btc-map-communities', function () {
|
||||
|
||||
Reference in New Issue
Block a user