api detail appointment

This commit is contained in:
Muhammad Fajar
2022-11-08 09:31:09 +07:00
parent d742e87285
commit f0bf98b153
2 changed files with 17 additions and 5 deletions

View File

@@ -70,9 +70,7 @@ class AppointmentController extends Controller
{
$appointment = Appointment::query()->with(['appointmentParticipants', 'organization'])->find($id);
return new AppointmentDetailResource($appointment);
return response()->json($appointment);
return Helper::responseJson(new AppointmentDetailResource($appointment));
}
/**