fix : 권한관리 기능 추가 (각 기능 확인 필요)
- 메뉴관리 - 역할관리 - 부서관리 - 메뉴, 부서, 역할, 유저 - 권한 연동
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
use App\Http\Middleware\CorsMiddleware;
|
||||
use App\Http\Middleware\ApiKeyMiddleware;
|
||||
use App\Http\Middleware\CheckSwaggerAuth;
|
||||
use App\Http\Middleware\SetSpatieTeamContext;
|
||||
use App\Http\Middleware\PermMapper;
|
||||
use App\Http\Middleware\CheckPermission;
|
||||
|
||||
$app = Application::configure(basePath: dirname(__DIR__))
|
||||
@@ -23,9 +25,10 @@
|
||||
$middleware->append(CorsMiddleware::class);
|
||||
|
||||
$middleware->alias([
|
||||
'auth.apikey' => ApiKeyMiddleware::class,
|
||||
'auth.apikey' => ApiKeyMiddleware::class, // 인증: apikey + basic auth
|
||||
'swagger.auth' => CheckSwaggerAuth::class,
|
||||
'permission' => CheckPermission::class,
|
||||
'perm.map' => PermMapper::class, // 전처리: 라우트명 → perm 키 생성/주입
|
||||
'permission' => CheckPermission::class, // 검사: perm 키로 접근 허용/차단
|
||||
]);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions) {
|
||||
|
||||
Reference in New Issue
Block a user