Skip to content

Commit

Permalink
API: fix port search with slashes (#14403)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Oct 2, 2022
1 parent a0316f4 commit abe4f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
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');
});
Expand Down

0 comments on commit abe4f6f

Please sign in to comment.