15 lines
594 B
PHP
15 lines
594 B
PHP
<?php
|
|
// these routes are available only for user with role admin
|
|
Route::group(['middleware' => 'onlyAdmin', 'namespace' => 'Templates'], function () {
|
|
Route::get('templates/overview/path/{templatePath}', 'TemplateOverview@getPath')
|
|
->name('templates.overview');
|
|
|
|
Route::post('templates/copy', 'CopyTemplate@createCopy')
|
|
->name('templates.postCopy');
|
|
|
|
Route::get('templates/edit/{template}', 'EditTemplate@getEdit')
|
|
->name('templates.edit');
|
|
|
|
Route::post('templates/edit/{template}', 'EditTemplate@postEdit')
|
|
->name('templates.postEdit');
|
|
}); |