1
0
Fork 0
pixelfed/app/Http/Controllers/ProfileSponsorController.php

17 lines
348 B
PHP
Raw Normal View History

2019-07-12 01:53:14 +00:00
<?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');
}
}