Add back API key deletion

This commit is contained in:
Dane Everitt 2017-02-16 12:57:48 -05:00
parent d3e4f944f7
commit 516e2dc5ee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 53 additions and 3 deletions

View file

@ -79,6 +79,7 @@ class APIController extends Controller
return response('', 204);
} catch (\Exception $ex) {
Log::error($ex);
return response()->json([
'error' => 'An error occured while attempting to remove this key.',
], 503);

View file

@ -89,6 +89,7 @@ class BaseRoutes
]);
$router->delete('/revoke/{key}', [
'as' => 'account.api.revoke',
'uses' => 'Base\APIController@revoke',
]);
});