<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\App\Api; use Illuminate\Support\Facades\Route; use ModStart\Module\ModuleManager; class ModStartApi { public static function registerModuleRoutes() { goto YEd8S; uTi2s: foreach ($lzXUC as $l2LYK => $wsDBG) { if (file_exists($oU8qf = ModuleManager::path($l2LYK, 'Api/routes.php'))) { Route::group(array('prefix' => config('modstart.api.prefix'), 'middleware' => array('api.bootstrap', 'api.session'), 'namespace' => "\\Module\\{$l2LYK}\\Api\\Controller"), function ($router) use($oU8qf) { require $oU8qf; }); } } goto LE3Ft; YEd8S: $lzXUC = ModuleManager::listAllInstalledModules(); goto uTi2s; LE3Ft: if (file_exists($LL2ZC = modstart_api_path('routes.php'))) { require $LL2ZC; } goto SAq9J; SAq9J: } }