Web_Crawler_API/routes/api.php
2023-05-31 13:17:19 +03:00

10 lines
380 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\WebCrawlController;
Route::get('/crawl', [WebCrawlController::class, 'crawlWebsite']);
Route::get('/', [WebCrawlController::class, 'index']);
Route::delete('/crawl/{id}', [WebCrawlController::class, 'destroy']);
Route::delete('/crawl', [WebCrawlController::class, 'destroyAll']);