firstcommit
This commit is contained in:
0
Modules/Consultation/routes/.gitkeep
Normal file
0
Modules/Consultation/routes/.gitkeep
Normal file
19
Modules/Consultation/routes/api.php
Normal file
19
Modules/Consultation/routes/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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:sanctum'])->prefix('v1')->name('api.')->group(function () {
|
||||
Route::get('consultation', fn (Request $request) => $request->user())->name('consultation');
|
||||
});
|
41
Modules/Consultation/routes/web.php
Normal file
41
Modules/Consultation/routes/web.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Consultation\app\Http\Controllers\ConsultationController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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::group(
|
||||
[
|
||||
'prefix' => 'apanel',
|
||||
'middleware' => ['auth'],
|
||||
'as' => 'cms.',
|
||||
],
|
||||
function () {
|
||||
Route::group(
|
||||
[
|
||||
'prefix' => 'cms',
|
||||
'as' => 'consultation.',
|
||||
'controller' => 'ConsultationController',
|
||||
],
|
||||
function () {
|
||||
Route::get('consultation', 'index')->name('index');
|
||||
Route::post('consultation/{uuid}', 'show')->name('show');
|
||||
Route::delete('consultation/{uuid}/delete', 'destroy')->name('delete');
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
// Route::post('/doctor-provider/make-appointment', 'AppointmentController@store')->name('make-appointment');
|
||||
|
Reference in New Issue
Block a user