mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update BaseApiController
This commit is contained in:
parent
066f1a9282
commit
2a5dbfbe80
1 changed files with 0 additions and 9 deletions
|
@ -44,15 +44,6 @@ class BaseApiController extends Controller
|
||||||
$this->fractal->setSerializer(new ArraySerializer());
|
$this->fractal->setSerializer(new ArraySerializer());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function notification(Request $request, $id)
|
|
||||||
{
|
|
||||||
$notification = Notification::findOrFail($id);
|
|
||||||
$resource = new Fractal\Resource\Item($notification, new NotificationTransformer());
|
|
||||||
$res = $this->fractal->createData($resource)->toArray();
|
|
||||||
|
|
||||||
return response()->json($res);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function notifications(Request $request)
|
public function notifications(Request $request)
|
||||||
{
|
{
|
||||||
$pid = Auth::user()->profile->id;
|
$pid = Auth::user()->profile->id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue