mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
17 lines
348 B
PHP
17 lines
348 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)
|
||
|
{
|
||
|
$res = ProfileSponsor::whereProfileId($id)->firstOrFail()->sponsors;
|
||
|
return response($res)->header('Content-Type', 'application/json');
|
||
|
}
|
||
|
}
|