Wiki
This commit is contained in:
@@ -1,8 +1,2 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\PerceptronController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware('throttle:training')->group(function () {
|
||||
Route::post('perceptron/run', [PerceptronController::class, 'run'])->name('perceptron.run');
|
||||
});
|
||||
|
||||
+10
-1
@@ -3,8 +3,17 @@
|
||||
use App\Http\Controllers\PerceptronController;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::redirect('/', '/perceptron?type=simple')->name('home');
|
||||
// Route::redirect('/', '/perceptron?type=simple')->name('home');
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Home');
|
||||
})->name('home');
|
||||
|
||||
Route::middleware('throttle:training')->post(
|
||||
'perceptron/run',
|
||||
[PerceptronController::class, 'run'],
|
||||
)->name('perceptron.run');
|
||||
|
||||
Route::resource('perceptron', PerceptronController::class)->only(['index']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user