1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Http/Controllers/UserRolesController.php
2024-01-02 22:06:54 -07:00

23 lines
438 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Services\UserRoleService;
class UserRolesController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function getRoles(Request $request)
{
$this->validate($request, [
'id' => 'required'
]);
return UserRoleService::getRoles($request->user()->id);
}
}