15 lines
572 B
PHP
15 lines
572 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/{id}', 'TemplateOverview@getPath')
|
|
->name('templates.overview');
|
|
|
|
Route::post('templates/copy', 'CopyTemplate@createCopy')
|
|
->name('templates.postCopy');
|
|
|
|
Route::get('templates/edit/{id}', 'EditTemplate@getEdit')
|
|
->name('templates.edit');
|
|
|
|
Route::post('templates/edit/{id}', 'EditTemplate@postEdit')
|
|
->name('templates.postEdit');
|
|
}); |