added more route instructions

This commit is contained in:
denisdulici
2020-01-31 00:23:09 +03:00
parent 9262ef5fb4
commit 7d9befedbf
9 changed files with 45 additions and 21 deletions

View File

@ -1,5 +1,11 @@
<?php
/**
* 'api' prefix applied to all routes
*
* @see \App\Providers\Route::mapApiRoutes
*/
$api = app('Dingo\Api\Routing\Router');
$api->version('v2', ['middleware' => ['api']], function($api) {