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.
 
 
 
 
 
 

59 lines
1.6 KiB

<?php
use App\Http\Controllers\FileController;
use App\Http\Controllers\FilterController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
# File routes
// Route::name('file.')->prefix('file')->middleware('auth:api')->group(
Route::name('file.')->prefix('file')->group(function() {
# POST "/file" (used to create/upload a file)
Route::post('/', [
FileController::class,
'create'
])->name('create');
Route::post('/convert', [
FileController::class,
'convert'
])->name('convert');
Route::delete('/{id}', [
FileController::class,
'delete'
]);
});
# Filter routes
// Route::name('filter.')->prefix('filter')->middleware('auth:api')->group(
Route::name('filter.')->prefix('filter')->group(function() {
# POST "/file" (used to create/upload a file)
Route::post('/', [
FilterController::class,
'create'
])->name('create');
# GET "/filter/all" (to retrieve data about a filter)
Route::get('/all', [
FilterController::class,
'get'
])->name('get.all');
# GET "/filter/{id}" (to retrieve data about a filter)
Route::get('/{id}', [
FilterController::class,
'get'
])->name('get');
});