src/Router.php
public static function apiRoutes(\Illuminate\Routing\Router $router)
    {
        $router->group(['prefix' => 'translations'], function (\Illuminate\Routing\Router $router) {

            $router->get('/index', [
                'as'   => 'translations.api.index',
                'uses' => ApiController::class . '@index'
            ]);
        });
    }
public static function apiRoutes(\Illuminate\Routing\Router $router)
    {
        $router->group(['prefix' => 'translations'], function (\Illuminate\Routing\Router $router) {

            $router->get('/index', [
                'as'   => 'translations.api.index',
                'uses' => ApiController::class . '@index'
            ]);
        });
    }
public static function apiRoutes ( \ Illuminate \ Routing \ Router $ router ) { $ router -> group ( [ 'prefix' => 'translations' ] , function ( \ Illuminate \ Routing \ Router $ router ) { $ router -> get ( '/index' , [ 'as' => 'translations.api.index' , 'uses' => ApiController :: class . '@index' ] ) ; } ) ; }
Register API routes

@return void
Register API routes