Skip to content

Commit

Permalink
API more in line with vapor (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfett authored Apr 17, 2020
1 parent b0a7b22 commit 2eb71c0
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 333 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
xcuserdata
packaged.yaml
examples/**/bootstrap
examples/**/lambda.zip
examples/**/lambda.zip
/Package.resolved
151 changes: 0 additions & 151 deletions Package.resolved

This file was deleted.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.9.0")),
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.13.0")),
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/fabianfett/swift-lambda-runtime.git", .upToNextMajor(from: "0.6.0")),
.package(url: "https://github.com/fabianfett/swift-base64-kit", .upToNextMajor(from: "0.2.0")),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ app.post("hello") { req -> Hello in
Next we just need to run the vapor app. To enable running in Lambda, we need to change the "serve" command. Then we can start the app by calling `app.run()`

```swift
app.commands.use(LambdaCommand(), as: "serve", isDefault: true)
app.servers.use(.lambda)

try app.run()
```
Expand Down
98 changes: 0 additions & 98 deletions Sources/VaporLambdaRuntime/LambdaCommand.swift

This file was deleted.

Loading

0 comments on commit 2eb71c0

Please sign in to comment.