Add server database management support to API.

This commit is contained in:
Dane Everitt
2018-01-25 22:34:53 -06:00
parent 2bd691efad
commit de07b3cc7f
10 changed files with 257 additions and 54 deletions

View File

@@ -46,6 +46,14 @@ class DisplayException extends PterodactylException
return $this->level;
}
/**
* @return int
*/
public function getStatusCode()
{
return Response::HTTP_BAD_REQUEST;
}
/**
* Render the exception to the user by adding a flashed message to the session
* and then redirecting them back to the page that they came from. If the