Fairly basic implementation of adding a server. Does not actually do anything yet.
Pushing this for commit sake.
This commit is contained in:
parent
94bfd24e7c
commit
b6ac96550b
3 changed files with 89 additions and 13 deletions
|
@ -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());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue