Skip to content

Commit

Permalink
bindle api
Browse files Browse the repository at this point in the history
  • Loading branch information
HolgerHatGarKeineNode committed Aug 18, 2023
1 parent 8070745 commit 44f3041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
Route::resource('cities', \App\Http\Controllers\Api\CityController::class);
Route::resource('venues', \App\Http\Controllers\Api\VenueController::class);
Route::resource('languages', \App\Http\Controllers\Api\LanguageController::class);
Route::get('bindles', function () {
return \App\Models\LibraryItem::query()
->where('type', 'bindle')
->orderByDesc('id')
->get();
});
Route::get('meetups', function () {
return \App\Models\Meetup::query()
->where('visible_on_map', true)
Expand Down

0 comments on commit 44f3041

Please sign in to comment.