feature primaya
This commit is contained in:
0
Modules/Primaya/Routes/.gitkeep
Normal file
0
Modules/Primaya/Routes/.gitkeep
Normal file
18
Modules/Primaya/Routes/api.php
Normal file
18
Modules/Primaya/Routes/api.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/primaya', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
16
Modules/Primaya/Routes/web.php
Normal file
16
Modules/Primaya/Routes/web.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::prefix('primaya')->group(function() {
|
||||
Route::get('/', 'PrimayaController@index');
|
||||
});
|
||||
Reference in New Issue
Block a user