mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-05-13 15:02:11 -04:00
Almost complete site
Add dark / light theme Add social sharing on meme pages Add approving / pending admin section Improve design Add pagination on profiles Make front end date time user friendly Finish rough draft of site And Much more... Still need to fix a few minor things before it goes live. Almost complete.
This commit is contained in:
parent
52a9007882
commit
dbfda5cf9e
39 changed files with 54195 additions and 663 deletions
25
app/Http/Controllers/ApiController.php
Normal file
25
app/Http/Controllers/ApiController.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue