mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
api
This commit is contained in:
@@ -33,6 +33,20 @@ Route::middleware([])
|
||||
->as('api.')
|
||||
->group(function () {
|
||||
Route::resource('languages', \App\Http\Controllers\Api\LanguageController::class);
|
||||
Route::get('meetups', function () {
|
||||
return \App\Models\Meetup::with([
|
||||
'city',
|
||||
])
|
||||
->get()
|
||||
->map(fn($meetup) => [
|
||||
'name' => $meetup->name,
|
||||
'url' => $meetup->telegram_link ?? $meetup->webpage ?? $meetup->twitter_username,
|
||||
'country' => str($meetup->city->country->code)->upper(),
|
||||
'city' => $meetup->city->name,
|
||||
'longitude' => $meetup->city->longitude,
|
||||
'latitude' => $meetup->city->latitude,
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Route::get('/lnurl-auth-callback', function (\Illuminate\Http\Request $request) {
|
||||
|
||||
Reference in New Issue
Block a user