2023-02-18 15:40:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Illuminate\Http\Client\Request;
|
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
2023-03-20 19:16:03 +01:00
|
|
|
use Illuminate\Support\Js;
|
2023-02-18 15:40:16 +01:00
|
|
|
|
|
|
|
class InfoController extends Controller
|
|
|
|
{
|
|
|
|
public function info(): JsonResponse
|
|
|
|
{
|
|
|
|
return new JsonResponse(['User' => Auth::user()]);
|
|
|
|
}
|
2023-03-20 19:16:03 +01:00
|
|
|
|
|
|
|
public function capabilities(): JsonResponse
|
|
|
|
{
|
|
|
|
return new JsonResponse(['login' => true, 'register' => true, 'reset' => true]);
|
|
|
|
}
|
2023-02-18 15:40:16 +01:00
|
|
|
}
|