librilladora/routes/web.php

25 lines
785 B
PHP
Raw Normal View History

2021-11-25 16:19:13 -03:00
<?php
use App\Http\Controllers\LibrilladoraController;
2021-11-25 16:19:13 -03:00
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FileUploadController;
2021-11-25 16:19:13 -03:00
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
2021-11-27 11:15:23 -03:00
Route::get('/processed/{fileName}/{size}', LibrilladoraController::class)->name('process');
2021-11-27 11:15:23 -03:00
Route::post('file-upload', [FileUploadController::class, 'fileUploadPost'])->name('file.upload.post');