Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. use App\Http\Controllers\FileController;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. Route::get('/', 'HomeController@index');
  15. Route::get('/file/download/{path}', [
  16. FileController::class,
  17. 'download'
  18. ])->where('path', '.*')->name('file.download');
  19. Route::get('/contracts-images/{id}/{image}', 'ContractImageController@show');
  20. Route::get('/search-and-displace/{id}', 'SearchAndDisplaceController@show');
  21. Route::post('/search-and-displace', 'SearchAndDisplaceController@store');
  22. Route::get('/regex/create', 'RegexController@create');
  23. Route::post('/regex', 'RegexController@store');
  24. Route::resource('/searchers', 'SearcherController');
  25. Route::webhooks('/webhooks', 'default');