initial: bootstrap from BukidBountyApp base
This commit is contained in:
20
app/Http/Controllers/Pages/PageController.php
Normal file
20
app/Http/Controllers/Pages/PageController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Controllers\Pages;
|
||||
|
||||
use Hypervel\Http\Request;
|
||||
use Hypervel\Support\Facades\Response;
|
||||
|
||||
class PageController
|
||||
{
|
||||
public static function PageResponse($data)
|
||||
{
|
||||
if ($data) {
|
||||
return Response::json($data, 200);
|
||||
} else {
|
||||
return Response::json(false, 404);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user