| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function version() |
||
| 27 | { |
||
| 28 | try { |
||
| 29 | $apiDetails = [ |
||
| 30 | 'cors' => 'enabled', |
||
| 31 | 'user' => [ |
||
| 32 | 'register' => 'enabled', |
||
| 33 | 'account' => [ |
||
| 34 | 'needActivation' => true, |
||
| 35 | 'canResetPassword' => true |
||
| 36 | ], |
||
| 37 | 'socialLogin' => 'enabled' |
||
| 38 | ] |
||
| 39 | ]; |
||
| 40 | |||
| 41 | return $this->successResponse($apiDetails); |
||
| 42 | } catch (Exception $e) { |
||
| 43 | Log::error(LogService::getExceptionTraceAsString($e)); |
||
| 44 | |||
| 45 | return $this->errorResponse(); |
||
| 46 | } |
||
| 69 |