File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,15 @@ import Vapor
4
4
A helper method for configuring your `ParseServerSwift`. This should only be called once when starting your
5
5
Vapor app.
6
6
- parameter app: Core type representing a Vapor application.
7
+ - parameter configuration: A `ParseServerConfiguration`. If `nil`, the vapor
8
+ environment variables will be used for configuration.
7
9
*/
8
- public func parseServerSwiftConfigure( _ app: Application ) async throws {
10
+ public func parseServerSwiftConfigure(
11
+ _ app: Application ,
12
+ configuration: ParseServerConfiguration ? = nil
13
+ ) async throws {
9
14
// Initialize ParseServerSwift
10
- let configuration = try ParseServerConfiguration ( app: app)
15
+ let configuration = try configuration ?? ParseServerConfiguration ( app: app)
11
16
try await ParseServerSwift . initialize ( configuration, app: app)
12
17
13
18
// register routes
You can’t perform that action at this time.
0 commit comments