Add back API key deletion
This commit is contained in:
parent
d3e4f944f7
commit
516e2dc5ee
5 changed files with 53 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -89,6 +89,7 @@ class BaseRoutes
|
|||
]);
|
||||
|
||||
$router->delete('/revoke/{key}', [
|
||||
'as' => 'account.api.revoke',
|
||||
'uses' => 'Base\APIController@revoke',
|
||||
]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue