mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 21:33:44 +02:00
Add back API key deletion
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user