Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
give MongoData a public init
Browse files Browse the repository at this point in the history
  • Loading branch information
radmakr committed Sep 2, 2022
1 parent 33ad346 commit ee524b7
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions Sources/MongoManager/MongoManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,25 @@ public struct MongoData {
public let database: String
public let dataSource: String
public let apiKey: String?
public let contentType = "application/json"
public let accessControlRequestHeaders = "*"
public let accept = "application/json"
public let contentType: String
public let accessControlRequestHeaders: String
public let accept: String

public init(baseURL: String,
database: String,
dataSource: String,
apiKey: String?,
contentType: String = "application/json",
accessControlRequestHeaders: String = "*",
accept: String = "application/json") {
self.baseURL = baseURL
self.database = database
self.dataSource = dataSource
self.apiKey = apiKey
self.contentType = contentType
self.accessControlRequestHeaders = accessControlRequestHeaders
self.accept = accept
}
}

public struct MongoManager {
Expand Down

0 comments on commit ee524b7

Please sign in to comment.