9 lines
287 B
PHP
9 lines
287 B
PHP
<?php
|
|
|
|
Route::get('/', 'HomeController@index')->name('home');
|
|
|
|
Route::middleware(['sanitizeCommand', 'logRequest'])->group(function () {
|
|
Route::post('/', 'HomeController@submit');
|
|
|
|
Route::match(['get', 'post'], '/{command}', 'HomeController@submit')->where('command', '.+');
|
|
});
|