[新增] first commit
This commit is contained in:
27
app/Api/ApiServiceProvider.php
Normal file
27
app/Api/ApiServiceProvider.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Api;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ApiServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
public function boot()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->loadAdminRoutes();
|
||||
}
|
||||
|
||||
protected function loadAdminRoutes()
|
||||
{
|
||||
Route::prefix('api')
|
||||
->namespace('App\Api\Controllers')
|
||||
->group(__DIR__ . '/routes.php');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user