Add shortcut support

This commit is contained in:
2023-05-13 21:08:41 +10:00
parent 5527ab55f6
commit f697b23285
2 changed files with 3 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ module Adamantium
private
def verify_token(access_token)
return %i[create update delete undelete media] if settings.shortcut_key == access_token
return %i[create update delete undelete media] if Hanami.env == :development || Hanami.env == :test
resp = HTTParty.get(settings.micropub_token_endpoint, {

View File

@@ -30,6 +30,8 @@ module Adamantium
setting :omdb_api_key, default: nil
setting :shortcut_key, default: nil
setting :from_email, default: nil
setting :dayone_email, default: nil