Skip to content

Initialize using apiKey string or Environment.get #40

@JaapWijnen

Description

@JaapWijnen

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions