mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2024-10-01 05:25:34 -04:00
26 lines
479 B
PHP
26 lines
479 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Models\Meme;
|
||
|
|
||
|
class ApiController extends Controller
|
||
|
{
|
||
|
public function documentation()
|
||
|
{
|
||
|
$data = [
|
||
|
'memes_example' => json_encode(Meme::get(), JSON_PRETTY_PRINT),
|
||
|
'memes_endpoint' => url('api/memes'),
|
||
|
];
|
||
|
return view('api', ['data' => $data]);
|
||
|
}
|
||
|
|
||
|
public function memes()
|
||
|
{
|
||
|
$memes = Meme::get();
|
||
|
return $memes;
|
||
|
}
|
||
|
|
||
|
}
|