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

php-laravel.routes.api.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
licenseInfo}}

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

{{#apiInfo}}
{{#apis}}
{{#operations}}
{{#operation}}
/**
 * {{httpMethod}} {{operationId}}
 * Summary: {{summary}}
 * Notes: {{notes}}
{{#hasProduces}} * Output-Formats: [{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}]{{/hasProduces}}
 */
Route::{{httpMethod}}('{{{basePathWithoutHost}}}{{{path}}}', '{{classname}}@{{operationId}}');
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy