Files
kalendar/routes/web.php
2018-10-30 15:24:18 +01:00

28 lines
1.2 KiB
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!
|
*/
Route::get('/', 'DashboardController@index')->name('home');
Route::post('/ajax', 'DashboardController@ajax')->name('home');
Auth::routes();
// konfigurace
Route::group(['prefix' => 'configuration', 'middleware' => 'auth'], function () {
Route::get('/', 'Configuration\CompanyController@index')->name('configuration');
Route::get('company', 'Configuration\CompanyController@index')->name('company');
Route::match(['get','post'], 'company/{id}', 'Configuration\CompanyController@edit')->name('company-edit');
Route::get('terms', 'Configuration\TermController@index')->name('terms');
Route::match(['get','post'],'term/{id}', 'Configuration\TermController@edit')->name('term-edit');
});
// pouzitelny template pro admin
// https://colorlib.com/wp/free-bootstrap-admin-dashboard-templates/