smc_cet_fin_backend/routes/routes.php
2021-07-14 17:44:44 +05:30

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');
});