20240120-ljl-routeConfig
ljl 10 months ago
parent c0693a9fdf
commit e8c509bfb9

@ -14,6 +14,9 @@ class Request {
private $fileParams = [];
private $cookieParams = [];
/**
* @return static
*/
public static function getInstance() {
if (empty(self::$instance)) {
self::$instance = new self();

@ -5,6 +5,9 @@ class Response {
private static $instance;
/**
* @return static
*/
public static function getInstance() {
if (empty(self::$instance)) {
self::$instance = new self();

@ -12,6 +12,9 @@ class RouteManager {
private $routeConfigPath;
/**
* @return static
*/
public static function getInstance() {
if (empty(self::$instance)) {
self::$instance = new self;

@ -1,5 +1,6 @@
<?php
use Middleware\AdminAuthMiddleware;
use Middleware\AdminSessionInitMiddleware;
Route::pattern('/^\/admin\/.*$/')->middlewares([AdminAuthMiddleware::class])->apps([AppConst::appMsPddOp]);
Route::pattern('/^\/admin\/.*$/')->middlewares([AdminSessionInitMiddleware::class, AdminAuthMiddleware::class]);
Loading…
Cancel
Save