mirror of https://github.com/vapor/docs.git
Make 'load' func in Droplet+Setup.swift public
This commit is contained in:
parent
5ada0ae80e
commit
e97187061b
|
|
@ -15,7 +15,7 @@ Here's an example of my setup file. I name mine `Droplet+Setup.swift`. Here's ho
|
|||
```swift
|
||||
import Vapor
|
||||
|
||||
func load(_ drop: Droplet) throws {
|
||||
public func load(_ drop: Droplet) throws {
|
||||
drop.preparations.append(Todo.self)
|
||||
|
||||
drop.get { _ in return "put my droplet's logic in this `load` function" }
|
||||
|
|
|
|||
Loading…
Reference in New Issue