mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
API Feature (#334)
This commit is contained in:
@ -3,9 +3,17 @@
|
||||
namespace App\Http\Controllers\API;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Knuckles\Scribe\Attributes\Endpoint;
|
||||
use Knuckles\Scribe\Attributes\Group;
|
||||
use Knuckles\Scribe\Attributes\Unauthenticated;
|
||||
use Spatie\RouteAttributes\Attributes\Get;
|
||||
|
||||
#[Group(name: 'general')]
|
||||
class HealthController extends Controller
|
||||
{
|
||||
#[Get('api/health', name: 'api.health')]
|
||||
#[Unauthenticated]
|
||||
#[Endpoint(title: 'health-check')]
|
||||
public function __invoke()
|
||||
{
|
||||
return response()->json([
|
||||
|
Reference in New Issue
Block a user