Dung Diego

up

......@@ -95,7 +95,7 @@
if(!(!!this.ocr && this.ocr.json_data)) return
const params = new URLSearchParams({disable: 1,...options});
const url = `/orders/preview-pdf?${params.toString()}`;
const url = `/preview-pdf?${params.toString()}`;
let form = document.createElement('form')
......
......@@ -15,19 +15,5 @@
*/
Route::get('/', [OcrController::class,'index']);
Route::get('/test', function () {
$file = 'D:\\key\\id_rsa_oms_base_test.pem';
return response()->json([
'php_sapi' => PHP_SAPI,
'current_user' => get_current_user(),
'script_owner' => getmyuid(),
'cwd' => getcwd(),
'file_exists' => file_exists($file),
'is_readable' => is_readable($file),
'realpath' => realpath($file),
'file_get_contents'=> @file_get_contents($file) !== false ? 'OK' : error_get_last(),
]);
});
Route::get('/preview-pdf', [OcrController::class,'preview_pdf'])->name('preview_pdf');
Route::post('/import-pdf', [OcrController::class,'import_pdf'])->name('import_pdf');
......