diff --git a/src/Generator/Stubs/routes/api.mac.stub b/src/Generator/Stubs/routes/api.mac.stub new file mode 100644 index 000000000..4dbea61fc --- /dev/null +++ b/src/Generator/Stubs/routes/api.mac.stub @@ -0,0 +1,30 @@ + '', 'roles' => ''] + * + * @apiHeader {String} accept=application/json + * @apiHeader {String} authorization=Bearer + * + * @apiParam {String} parameters here... + * + * @apiSuccessExample {json} Success-Response: + * HTTP/1.1 200 OK + * { + * // Insert the response of the request here... + * } + */ + +use App\Containers\{{section-name}}\{{container-name}}\UI\API\Controllers\{{controller-name}}; +use Illuminate\Support\Facades\Route; + +Route::{{http-verb}}('{{endpoint-url}}', {{controller-name}}::class) + ->middleware(['auth:{{auth-middleware}}']); +