mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-17 20:11:27 +00:00
17 lines
345 B
PHP
17 lines
345 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\ProfileSponsor;
|
|
use Auth;
|
|
|
|
class ProfileSponsorController extends Controller
|
|
{
|
|
public function get(Request $request, $id)
|
|
{
|
|
$profile = ProfileSponsor::whereProfileId($id)->first();
|
|
$res = $profile ? $profile->sponsors : [];
|
|
return response()->json($res);
|
|
}
|
|
}
|