journal-intime/routes/web.php
Clement Desmidt 7cec21bc21 Ajoute la gallerie
On utilise une libraire pour créer les miniatures
Fix #4
2020-03-10 13:10:38 +01:00

24 lines
980 B
PHP

<?php
/*/
|--------------------------------------------------------------------------
| 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!
|
*/
Auth::routes();
Route::get('/', 'WelcomeController@index')->name('home');
Route::get('/home', 'HomeController@index')->name('dashboard');
Route::post('store', 'HomeController@store')->name('store');
Route::post('delete', 'HomeController@delete')->name('delete');
Route::post('edit', 'HomeController@edit')->name('edit');
Route::post('stats', 'StatsController@tag')->name('stats'); // TODO make a group for stats
Route::get('/display/{post_id}/{options}/{image_name}', 'ImageController@display')->name('display_image');
Route::get('/gallery', 'ImageController@gallery')->name('gallery');