Refactoring Grape API methods into normal controllers & other things
This commit is contained in:
parent
11ff92c9d7
commit
0e8f59c16f
63 changed files with 336 additions and 406 deletions
|
@ -9,6 +9,8 @@ class XrdController < ApplicationController
|
|||
@account = Account.find_by!(username: username_from_resource, domain: nil)
|
||||
@canonical_account_uri = "acct:#{@account.username}@#{LOCAL_DOMAIN}"
|
||||
@magic_key = pem_to_magic_key(@account.keypair.public_key)
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render nothing: true, status: 404
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue