2017-10-25 04:35:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Controllers\Server\Settings;
|
|
|
|
|
|
|
|
use Illuminate\View\View;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
|
|
use Pterodactyl\Traits\Controllers\JavascriptInjection;
|
|
|
|
|
|
|
|
class SftpController extends Controller
|
|
|
|
{
|
|
|
|
use JavascriptInjection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Render the server SFTP settings page.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
|
|
|
* @return \Illuminate\View\View
|
2018-03-10 20:26:00 +00:00
|
|
|
*
|
|
|
|
* @throws \Illuminate\Auth\Access\AuthorizationException
|
2017-10-25 04:35:25 +00:00
|
|
|
*/
|
|
|
|
public function index(Request $request): View
|
|
|
|
{
|
2018-03-10 20:26:00 +00:00
|
|
|
$this->authorize('access-sftp', $request->attributes->get('server'));
|
2017-10-25 04:35:25 +00:00
|
|
|
$this->setRequest($request)->injectJavascript();
|
|
|
|
|
|
|
|
return view('server.settings.sftp');
|
|
|
|
}
|
|
|
|
}
|