Fairly basic implementation of adding a server. Does not actually do anything yet.

Pushing this for commit sake.
This commit is contained in:
Dane Everitt 2015-12-11 23:28:58 -05:00
parent 94bfd24e7c
commit b6ac96550b
3 changed files with 89 additions and 13 deletions

View file

@ -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());
}
/**