Update (test): add indexing route

This commit is contained in:
2023-09-26 02:27:45 +08:00
parent adc983ef3a
commit e9c8179c13
2 changed files with 28 additions and 14 deletions

View File

@@ -14,8 +14,8 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow;
use LaravelGoogleIndexing;
// use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow;
// use LaravelGoogleIndexing;
/*
|--------------------------------------------------------------------------
@@ -28,18 +28,7 @@
|
*/
Route::get('/indexing', function (Request $request) {
$url = $request->input('url');
if (is_null($url))
{
abort(404);
}
IndexNow::submit($url);
LaravelGoogleIndexing::create()->update($url);
});
Route::get('/indexing', [App\Http\Controllers\Test\TestController::class, 'indexing']);
Route::get('/serp-ai-gen', function (Request $request) {
AISerpGenArticleJob::dispatch()->onQueue('default')->onConnection('default');