PHP Classes

File: src/Core/Commands/stubs/module/routes/api.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Laravel Module Generator   src/Core/Commands/stubs/module/routes/api.php   Download  
File: src/Core/Commands/stubs/module/routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Module Generator
Generate code for modules for Laravel applications
Author: By
Last change:
Date: 2 years ago
Size: 594 bytes
 

Contents

Class file image Download
<?php

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

/*
|--------------------------------------------------------------------------
| API Routes [{{ module-name }}]
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your module. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

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