mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Fairly basic implementation of adding a server. Does not actually do anything yet.
Pushing this for commit sake.
This commit is contained in:
@@ -54,8 +54,16 @@ class ServersController extends Controller
|
||||
|
||||
public function postNewServer(Request $request)
|
||||
{
|
||||
Server::addServer($request->all());
|
||||
|
||||
try {
|
||||
$resp = Server::addServer($request->all());
|
||||
echo $resp . '<br />';
|
||||
} catch (\Exception $e) {
|
||||
Debugbar::addException($e);
|
||||
}
|
||||
|
||||
return json_encode($request->all());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user