Add (initial): futurewalker code
This commit is contained in:
@@ -2,18 +2,25 @@
|
||||
|
||||
use App\Helpers\FirstParty\OpenAI\OpenAI;
|
||||
use App\Jobs\AISerpGenArticleJob;
|
||||
use App\Jobs\BrowseAndWriteWithAIJob;
|
||||
use App\Jobs\FillPostMetadataJob;
|
||||
use App\Jobs\GenerateArticleFeaturedImageJob;
|
||||
use App\Jobs\GenerateArticleJob;
|
||||
use App\Jobs\SchedulePublishPost;
|
||||
use App\Jobs\Tasks\GetNewsSerpTask;
|
||||
use App\Jobs\Tasks\ParseNewsSerpDomainsTask;
|
||||
use App\Jobs\Tasks\ScrapeUrlBodyTask;
|
||||
use App\Jobs\Tasks\WriteWithAITask;
|
||||
use App\Models\Category;
|
||||
use App\Models\NewsSerpResult;
|
||||
use App\Models\Post;
|
||||
use App\Models\SerpUrl;
|
||||
use App\Notifications\PostIncomplete;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
//use Notification;
|
||||
|
||||
// use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow;
|
||||
// use LaravelGoogleIndexing;
|
||||
|
||||
@@ -27,6 +34,30 @@
|
||||
| be assigned to the "web" middleware group. Make something great!
|
||||
|
|
||||
*/
|
||||
Route::get('/incomplete/post', function (Request $request) {
|
||||
|
||||
$post = Post::find(1);
|
||||
|
||||
Notification::route(get_notification_channel(), get_notification_user_id())->notify(new PostIncomplete($post));
|
||||
});
|
||||
|
||||
Route::get('/fire/now', function (Request $request) {
|
||||
BrowseAndWriteWithAIJob::dispatch()->onQueue('default')->onConnection('default');
|
||||
});
|
||||
|
||||
Route::get('/aj/oooi', function (Request $request) {
|
||||
|
||||
WriteWithAITask::handle(1);
|
||||
|
||||
//return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/aj/curj', function (Request $request) {
|
||||
|
||||
FillPostMetadataJob::dispatch($request->input('id', 1))->onQueue('default')->onConnection('default');
|
||||
|
||||
//return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/now-minute', function (Request $request) {
|
||||
dd(now()->minute);
|
||||
|
||||
Reference in New Issue
Block a user