[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize using apiKey string or Environment.get #40

Open
JaapWijnen opened this issue Aug 31, 2020 · 0 comments
Open

Initialize using apiKey string or Environment.get #40

JaapWijnen opened this issue Aug 31, 2020 · 0 comments

Comments

@JaapWijnen
Copy link
JaapWijnen commented Aug 31, 2020

Could we upgrade the initialize method to either receive a string instead of relying on it being in the environment, this way developers can choose their own environment name, but can also use a .env file if they want.
We can do something like:

public func initialize(apiKey: String) {            
   self.application.storage[Key.self] = .init(apiKey: apiKey)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant