Skip to content

Commit

Permalink
update with admin_key
Browse files Browse the repository at this point in the history
  • Loading branch information
leeduckgo committed Nov 29, 2023
1 parent c058a5a commit 1b69ae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ config :tai_shang_micro_faas_system,
embedbase_key: System.get_env("EMBEDBASE_KEY"),
did_mainnet: "0x61b96051f553d767d7e6dfcc04b04c28d793c8af3d07d3a43b4e2f8f4ca04c9f",
did_testnet: "0xc71124a51e0d63cfc6eb04e690c39a4ea36774ed4df77c00f7cbcbc9d0505b2c",
api_key: System.get_env("API_KEY")
api_key: System.get_env("API_KEY"),
admin_key: System.get_env("ADMIN_KEY")

config :cors_plug,
max_age: 2592000,
Expand Down
3 changes: 3 additions & 0 deletions lib/utils/constants.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ defmodule Constants do
Application.fetch_env!(:tai_shang_micro_faas_system, :api_key)
end

def get_admin_key() do
Application.fetch_env!(:tai_shang_micro_faas_system, :admin_key)
end
end

0 comments on commit 1b69ae9

Please sign in to comment.