Skip to content

Commit a94eb1b

Browse files
Merge pull request #1161 from liberu-genealogy/sweep/Add-Socialstream-Routes-and-Descendant-Chart-Controller
Add Socialstream Routes and Descendant Chart Controller
2 parents ec4a31c + aa26ad5 commit a94eb1b

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
use App\Models\Person;
7+
8+
class DescendantChartController extends Controller
9+
{
10+
public function index()
11+
{
12+
// Since the Livewire component handles data fetching and processing, we don't need to fetch data here.
13+
// Just return the view that includes the Livewire component.
14+
return view('filament.pages.descendant-chart');
15+
}
16+
}

app/Providers/RouteServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ public function boot(): void
2626

2727
Route::middleware('web')
2828
->group(base_path('routes/web.php'));
29+
30+
Route::middleware('web')
31+
->group(base_path('routes/socialstream.php'));
2932
});
3033
}
3134

3235
protected function configureRateLimiting(): void
3336
{
3437
RateLimiter::for('api', fn(Request $request) => Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()));
3538
}
36-
}
39+
}

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
'verified',
3636
])->group(function (): void {
3737
Route::get('/dashboard', fn() => view('dashboard'))->name('dashboard');
38-
});
38+
});

0 commit comments

Comments
 (0)