More complete implementation of database management in panel.

Still missing ability to change passwords for databases, but that will
come soon.
This commit is contained in:
Dane Everitt 2016-02-14 21:43:20 -05:00
parent e14d1d3c95
commit 217762a2eb
10 changed files with 384 additions and 42 deletions

View file

@ -413,18 +413,4 @@ class ServersController extends Controller
])->withInput();
}
public function deleteDatabase(Request $request, $id, $database)
{
try {
$repo = new DatabaseRepository;
$repo->drop($database);
return response('', 204);
} catch (\Exception $ex) {
Log::error($ex);
return response()->json([
'error' => 'An exception occured while attempting to delete this database.'
], 500);
}
}
}