<?php

use Illuminate\Support\Facades\Route;
use Modules\TeamplateDirectoryName\Http\Controllers\TeamplateClass;

Route::middleware(['auth'])->group(function() {
    
    Route::get('/TeamplateRoutePrefix', [TeamplateClass::class, 'index']);

    Route::middleware(['hasAccess'])->group(function() {
        /** Routes that need to be protected - Маршруты которые нужно защитить */
    });
});