HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/ghayatcom/ghayatcom-api/routes/web.php
<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\FhirController;
use App\Http\Controllers\Api\GeneralHealthConditionPatientController;

/*
|--------------------------------------------------------------------------
| 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::get('/', function () {
    return abort(404);
});

Route::get('test', [GeneralHealthConditionPatientController::class, 'test']);

Route::prefix('fhir')->group(function () {
    // Patient-specific routes
    Route::get('patients', [FhirController::class, 'index']);
    // Route::post('patients', [FhirController::class, 'store']);
    Route::get('patient/create', [FhirController::class, 'store']);
    Route::get('patients/{id}', [FhirController::class, 'show']);
    Route::put('patients/{id}', [FhirController::class, 'update']);
    Route::delete('patients/{id}', [FhirController::class, 'destroy']);
    Route::get('patients/{id}/everything', [FhirController::class, 'everything']);

    // Generic resource routes
    // Route::get('{resourceType}', [FhirController::class, 'search']);
    // Route::post('{resourceType}', [FhirController::class, 'store']);
    // Route::get('{resourceType}/{id}', [FhirController::class, 'show']);
    // Route::put('{resourceType}/{id}', [FhirController::class, 'update']);
    // Route::delete('{resourceType}/{id}', [FhirController::class, 'destroy']);
});

// Route::group(['prefix' => 'fhir'], function() {
//     Route::group(['prefix' => 'patient'], function() {
//         Route::get('create', [FhirController::class, 'create']);
//         Route::get('update/{patient_id}', [FhirController::class, 'update']);
//         Route::get('view/{patient_id}', [FhirController::class, 'show']);
//         Route::get('delete/{patient_id}', [FhirController::class, 'destroy']);
//     });
// });