mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
Initial supported apps support
This commit is contained in:
@@ -246,7 +246,13 @@ class ItemController extends Controller
|
||||
public function appload(Request $request)
|
||||
{
|
||||
$app = $request->input('app');
|
||||
return "a: ".$app;
|
||||
if($app) {
|
||||
$all_supported = Item::supportedList();
|
||||
$app_details = new $all_supported[$app];
|
||||
}
|
||||
$output['icon'] = $app_details->icon();
|
||||
$output['colour'] = $app_details->defaultColour();
|
||||
return json_encode($output);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user