25 lines
976 B
PHP
25 lines
976 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Template\Http\Controllers\TemplateController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::group(['middleware' => ['web', 'auth', 'permission'], 'prefix' => 'admin/'], function () {
|
|
Route::get('email-template', [TemplateController::class, 'email'])->name('template.email');
|
|
Route::get('template/findByAjax', [TemplateController::class, 'findByAjax'])->name('template.findByAjax');
|
|
Route::post('files/upload', [TemplateController::class, 'fileUpload'])->name('file.upload');
|
|
|
|
Route::resource('template', TemplateController::class)->names('template');
|
|
|
|
});
|