misc_pterodactyl-panel/app/Http/Controllers/Admin/APIController.php
2016-01-16 01:20:27 -05:00

32 lines
588 B
PHP

<?php
namespace Pterodactyl\Http\Controllers\Admin;
use Alert;
use Log;
use Pterodactyl\Models;
use Pterodactyl\Http\Controllers\Controller;
use Illuminate\Http\Request;
class APIController extends Controller
{
public function __construct()
{
//
}
public function getIndex(Request $request)
{
$keys = Models\APIKey::all();
foreach($keys as &$key) {
$key->permissions = Models\APIPermission::where('key_id', $key->id)->get();
}
return view('admin.api.index', [
'keys' => $keys
]);
}
}