You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Controllers/Admin/CloudPageController.php

45 lines
1.1 KiB
PHTML

<?php
namespace App\Controllers\Admin;
use App\Controllers\AdminController;
/** Page shells only; the scoped JSON API owns authorisation and mutations. */
final class CloudPageController extends AdminController
{
public function hosts($request, $response, $args)
{
return $this->view()->display('admin/hosts/index.tpl');
}
public function templates($request, $response, $args)
{
return $this->view()->display('admin/cloud/templates.tpl');
}
public function rescue($request, $response, $args)
{
return $this->view()->display('admin/cloud/rescue.tpl');
}
public function instances($request, $response, $args)
{
return $this->view()->display('admin/cloud/instances.tpl');
}
public function orders($request, $response, $args)
{
return $response->withRedirect('/admin/billing?view=orders', 302);
}
public function billing($request, $response, $args)
{
return $this->view()->display('admin/billing.tpl');
}
public function update($request, $response, $args)
{
return $this->view()->display('admin/update.tpl');
}
}