2019-09-18 16:50:01 +02:00
|
|
|
<?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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-03-17 17:33:04 +01:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2019-09-18 16:50:01 +02:00
|
|
|
Auth::routes();
|
|
|
|
|
2020-03-17 17:33:04 +01:00
|
|
|
// not connected
|
2019-09-25 15:20:22 +02:00
|
|
|
Route::get('/', 'WelcomeController@index')->name('home');
|
2020-03-17 17:33:04 +01:00
|
|
|
|
|
|
|
// connected
|
|
|
|
Route::group(['middleware' => ['auth']], function() {
|
|
|
|
// posts
|
|
|
|
Route::get('/home', 'DashboardController@index')->name('dashboard');
|
|
|
|
Route::post('store', 'DashboardController@store')->name('store');
|
|
|
|
Route::post('delete', 'DashboardController@delete')->name('delete');
|
|
|
|
Route::post('edit', 'DashboardController@edit')->name('edit');
|
|
|
|
|
|
|
|
// stats
|
|
|
|
Route::post('stats', 'StatsController@tag')->name('stats'); // TODO make a group for stats
|
2020-03-18 16:57:32 +01:00
|
|
|
Route::get('/calendar/{type}/{year?}/{month?}', 'StatsController@calendar')->name('calendar');
|
2020-03-17 17:33:04 +01:00
|
|
|
|
|
|
|
// gallery
|
2020-03-19 12:11:21 +01:00
|
|
|
Route::get('/avatar/{alias}', 'ImageController@avatar')->name('display_avatar');
|
|
|
|
Route::get('/display/{post_id}/{alias?}', 'ImageController@display')->name('display_image');
|
2020-03-17 17:33:04 +01:00
|
|
|
Route::get('/gallery', 'ImageController@gallery')->name('gallery');
|
|
|
|
|
|
|
|
// user
|
|
|
|
Route::get('/user', 'UserController@index')->name('user.index');
|
|
|
|
Route::post('/user', 'UserController@update')->name('user.update');
|
|
|
|
});
|