FEATURE: make own page for template overview
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<?php
|
||||
// these routes are available only for user with role admin
|
||||
Route::group(['namespace' => 'Templates'], function () {
|
||||
Route::get('templates/overview/path/{templatePath}', 'TemplateOverview@getPath')
|
||||
|
||||
Route::get('templates', 'TemplateOverview@index')
|
||||
->name('templates.index')
|
||||
->middleware('can:manage,' . \App\Models\Templates\Template::class);
|
||||
|
||||
Route::get('templates/{templatePath}', 'TemplateOverview@getPath')
|
||||
->name('templates.overview')
|
||||
->middleware('can:manage,' . \App\Models\Templates\Template::class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user