src/Providers/RouteServiceProvider.php
protected function mapApiRoutes()
    {
        Route::group([
            'middleware' => 'api',
            'namespace'  => $this->namespace.'\Api',
            'domain'     => config('hstcms.apiDomain') ? config('hstcms.apiDomain') : env('APP_URL'),
            'prefix'     => config('hstcms.apiDomain') ? '' : config('hstcms.apiPrefix') ? config('hstcms.apiPrefix') : 'api',
        ], function ($router) {
             require __DIR__.'/../Routes/api.php';
        });
    }
protected function mapApiRoutes()
    {
        Route::group([
            'middleware' => 'api',
            'namespace'  => $this->namespace.'\Api',
            'domain'     => config('hstcms.apiDomain') ? config('hstcms.apiDomain') : env('APP_URL'),
            'prefix'     => config('hstcms.apiDomain') ? '' : config('hstcms.apiPrefix') ? config('hstcms.apiPrefix') : 'api',
        ], function ($router) {
             require __DIR__.'/../Routes/api.php';
        });
    }
protected function mapApiRoutes ( ) { Route :: group ( [ 'middleware' => 'api' , 'namespace' => $ this -> namespace . '\Api' , 'domain' => config ( 'hstcms.apiDomain' ) ? config ( 'hstcms.apiDomain' ) : env ( 'APP_URL' ) , 'prefix' => config ( 'hstcms.apiDomain' ) ? '' : config ( 'hstcms.apiPrefix' ) ? config ( 'hstcms.apiPrefix' ) : 'api' , ] , function ( $ router ) { require __DIR__ . '/../Routes/api.php' ; } ) ; }
Define the "api" routes for the module.

These routes are typically stateless.

@return void
Define the api routes for the module .