diff --git a/app/action.rb b/app/action.rb index 725967f..6218674 100644 --- a/app/action.rb +++ b/app/action.rb @@ -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, { diff --git a/config/settings.rb b/config/settings.rb index b5e667f..f3afa9f 100644 --- a/config/settings.rb +++ b/config/settings.rb @@ -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