API: fix port search with slashes (#14403)

This commit is contained in:
Tony Murray 2022-10-02 00:01:15 -05:00 committed by GitHub
parent a0316f4b9e
commit abe4f6fbc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ Route::group(['prefix' => 'v0', 'namespace' => '\App\Api\Controllers'], function
Route::group(['prefix' => 'ports'], function () {
Route::get('{portid}', 'LegacyApiController@get_port_info')->name('get_port_info');
Route::get('{portid}/ip', 'LegacyApiController@get_port_ip_addresses')->name('get_port_ip_info');
Route::get('search/{field}/{search?}', 'LegacyApiController@search_ports')->name('search_ports');
Route::get('search/{field}/{search?}', 'LegacyApiController@search_ports')->name('search_ports')->where('search', '.*');
Route::get('mac/{search}', 'LegacyApiController@search_by_mac')->name('search_mac');
Route::get('', 'LegacyApiController@get_all_ports')->name('get_all_ports');
});