Skip to content

Commit

Permalink
Merge #632
Browse files Browse the repository at this point in the history
632: fix: disable user endpoint r=daveroverts a=daveroverts



Co-authored-by: Dave Roverts <[email protected]>
  • Loading branch information
bors[bot] and daveroverts authored Dec 5, 2022
2 parents 2cf3bdf + cbbde1c commit 375b08f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
use App\Http\Resources\BookingsCollection;
use App\Http\Resources\EventResource;
use App\Http\Resources\EventsCollection;
use App\Http\Resources\UserResource;
use App\Http\Resources\UsersCollection;
use App\Models\Airport;
use App\Models\Booking;
use App\Models\User;
use App\Models\Event;

/*
Expand All @@ -29,9 +26,9 @@
// return new UserResource($user);
// });

Route::get('/users', function () {
return new UsersCollection(User::all());
});
// Route::get('/users', function () {
// return new UsersCollection(User::all());
// });

Route::get('/events/upcoming/{limit?}', function ($limit = 3) {
return new EventsCollection(Event::where('is_online', true)
Expand Down

0 comments on commit 375b08f

Please sign in to comment.