Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
9 | public function index() |
||
10 | { |
||
11 | try { |
||
12 | DB::select('SELECT 1'); |
||
13 | } catch (\Exception $e) { |
||
14 | return response()->json([ |
||
15 | 'status' => 'error', |
||
16 | 'message' => 'Database connection error', |
||
17 | ], 500); |
||
18 | } |
||
19 | |||
20 | return response()->json([ |
||
21 | 'status' => 'ok', |
||
22 | 'message' => 'ok', |
||
23 | 'version' => config('constants.AP_VERSION'), |
||
24 | 'date' => config('constants.AP_DATE'), |
||
25 | ]); |
||
28 |