mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-01-02 19:30:58 -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()
|
public function memes()
|
||||||
{
|
{
|
||||||
$memes = Meme::get();
|
$memes = Meme::paginate(100);
|
||||||
return $memes;
|
return $memes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,4 +18,4 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
|
|||||||
return $request->user();
|
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