mirror of
https://github.com/kevin-DL/commander_league_api.git
synced 2026-01-12 02:45:19 +00:00
- Created the formats tables/migrations - Created the controller to retrieve the formats
20 lines
616 B
PHP
20 lines
616 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Application Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register all of the routes for an application.
|
|
| It is a breeze. Simply tell Lumen the URIs it should respond to
|
|
| and give it the Closure to call when that URI is requested.
|
|
|
|
|
*/
|
|
|
|
/** @var $router \Laravel\Lumen\Routing\Router */
|
|
$router->get('/', function () use ($router) {
|
|
return $router->app->version();
|
|
});
|
|
|
|
$router->get('/formats', ['uses' => 'FormatsController@index', 'as' => 'formats.list']);
|