Files
huginn/routes/web.php
T
m105 cefb846a19 Add competitor-discovery search (/discover)
The actual "who sells honey with a .es domain" feature: search sites
by keyword — matched against page title/description/keywords/body
text via a new MySQL fulltext index on site_pages — combined with an
optional TLD filter on the domain. Results are sites ranked by number
of matching pages. Shows nothing until a filter is entered, so it
doesn't just duplicate the plain Sites browse page.

Verified against real .es data pulled in for the test (dominio ->
4 matching sites, correctly ranked and TLD-filtered).
2026-07-22 21:22:14 +03:00

11 lines
388 B
PHP

<?php
use App\Http\Controllers\SiteController;
use App\Livewire\Discover\Search as DiscoverSearch;
use App\Livewire\Sites\Index as SitesIndex;
use Illuminate\Support\Facades\Route;
Route::get('/', SitesIndex::class)->name('sites.index');
Route::get('/sites/{site}', [SiteController::class, 'show'])->name('sites.show');
Route::get('/discover', DiscoverSearch::class)->name('discover');