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.

38 lines
1.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 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::post('/search-and-displace/original-document', 'SearchAndDisplaceOriginalDocumentController@store');
  21. Route::get('/search-and-displace/original-document/{id}', 'SearchAndDisplaceOriginalDocumentController@show');
  22. Route::get('/search-and-displace/original-document/{id}/download', 'SearchAndDisplaceOriginalDocumentController@download');
  23. Route::get('/search-and-displace/{id}', 'SearchAndDisplaceController@show');
  24. Route::post('/search-and-displace', 'SearchAndDisplaceController@store');
  25. Route::get('/regex/create', 'RegexController@create');
  26. Route::post('/regex', 'RegexController@store');
  27. Route::resource('/searchers', 'SearcherController');
  28. Route::webhooks('/webhooks', 'default');