Wire admin studio SSR and search infrastructure
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
namespace App\Http\Controllers\Web\Posts;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Seo\SeoFactory;
|
||||
use Illuminate\Http\Request;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
|
||||
class FollowingFeedController extends Controller
|
||||
{
|
||||
public function __construct(private SeoFactory $seoFactory) {}
|
||||
|
||||
/**
|
||||
* GET /feed/following
|
||||
* Renders the Following Feed Inertia page.
|
||||
@@ -16,6 +19,13 @@ class FollowingFeedController extends Controller
|
||||
*/
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
$seo = $this->seoFactory->simplePage(
|
||||
title: 'Following Feed — ' . config('seo.site_name', 'Skinbase'),
|
||||
description: 'Posts from creators you follow on Skinbase.',
|
||||
canonical: url('/feed/following'),
|
||||
indexable: false,
|
||||
);
|
||||
|
||||
return Inertia::render('Feed/FollowingFeed', [
|
||||
'auth' => [
|
||||
'user' => $request->user() ? [
|
||||
@@ -25,6 +35,7 @@ class FollowingFeedController extends Controller
|
||||
'avatar' => $request->user()->profile?->avatar_url ?? null,
|
||||
] : null,
|
||||
],
|
||||
'seo' => $seo,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user