@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | class ApiController extends Controller |
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | - * Get info about the install |
|
| 15 | - */ |
|
| 14 | + * Get info about the install |
|
| 15 | + */ |
|
| 16 | 16 | public function get_info() |
| 17 | 17 | { |
| 18 | 18 | $versions['git'] = `git rev-parse --short HEAD`; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Get statistics about the install |
| 31 | - **/ |
|
| 31 | + **/ |
|
| 32 | 32 | public function get_stats() |
| 33 | 33 | { |
| 34 | 34 | $stats['devices'] = DB::select('SELECT COUNT(device_id) AS `total` FROM `devices`')[0]->total; |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace App\Api\Controllers; |
| 4 | 4 | |
| 5 | 5 | use DB; |
| 6 | -use App\User; |
|
| 7 | 6 | use App\Device; |
| 8 | 7 | use App\Port; |
| 9 | -use Illuminate\Http\Request; |
|
| 10 | 8 | |
| 11 | 9 | class ApiController extends Controller |
| 12 | 10 | { |