mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
12 lines
303 B
Ruby
12 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class APIKeysController < ApplicationController
|
|
def destroy
|
|
api_key = APIKey.find(params[:id])
|
|
user = api_key.user
|
|
api_key.revoke!
|
|
redirect_to admin_user_path(user), notice: "API key '#{api_key.name}' revoked."
|
|
end
|
|
end
|
|
end
|