mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2024-12-21 05:44:18 -05:00
Add API back and pagination
This commit is contained in:
parent
a7943e53ea
commit
60e29588ea
@ -20,7 +20,7 @@ class ApiController extends Controller
|
||||
|
||||
public function memes()
|
||||
{
|
||||
$memes = Meme::get();
|
||||
$memes = Meme::paginate(100);
|
||||
return $memes;
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,4 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
|
||||
// Route::middleware('api')->get('memes', [App\Http\Controllers\ApiController::class, 'memes']);
|
||||
Route::middleware('api')->get('memes', [App\Http\Controllers\ApiController::class, 'memes']);
|
||||
|
Loading…
Reference in New Issue
Block a user