40 lines
895 B
PHP
40 lines
895 B
PHP
<?php
|
|
|
|
/** @var \Laravel\Lumen\Routing\Router $router */
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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.
|
|
|
|
|
*/
|
|
|
|
$router->get('/showMyName/{name}', function ($name) use ($router) {
|
|
return 'Hi, Welcome '.$name;
|
|
});
|
|
|
|
$router->group(['prefix' => 'api'], function () use ($router) {
|
|
|
|
$router->get('showMyName', ['uses' => 'ExampleController@showMyName']);
|
|
|
|
|
|
});
|
|
|
|
$router->group(['prefix' => 'api'], function () use ($router) {
|
|
|
|
$router->get('test', 'FinancialController@test');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|