All Downloads are FREE. Search and download functionalities are using the official Maven repository.

php-lumen.routes.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
licenseInfo}}
{{>licenseInfoLumen}}
{{#apiInfo}}/**
 * {{appName}}
 * @version {{appVersion}}
 */

/*
|--------------------------------------------------------------------------
| 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('/', function () use ($router) {
    return $router->app->version();
});

{{#apis}}
{{#operations}}
{{#operation}}
/**
 * {{httpMethod}} {{operationId}}
 * Summary: {{summary}}
 * Notes: {{notes}}
 */
$router->{{httpMethod}}('{{{basePathWithoutHost}}}{{{path}}}', '{{classname}}@{{operationId}}');

{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy