Skip to content

Commit

Permalink
Update README and endpoint message for email integration with IndiePi…
Browse files Browse the repository at this point in the history
…tcher
  • Loading branch information
petrpavlik committed Sep 29, 2024
1 parent 7ee15ba commit a141348
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HummingbirdExample
Hummingbird server framework project
Example demonstrating how to send an email using [IndiePitcher](https://indiepitcher.com) from a Hummingbird backend.

- Create a free account at https://indiepitcher.com
- Create a new project
Expand Down
2 changes: 1 addition & 1 deletion Sources/App/Application+build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func buildRouter() -> Router<AppRequestContext> {
}
// Add default endpoint
router.get("/") { _, _ in
return "Hello! Trigger an email by visiting /send_email endpoint"
return "Hello! Trigger an email by visiting /send_email endpoint!"
}

router.get("/send_email") { _, context in
Expand Down
2 changes: 1 addition & 1 deletion Tests/AppTests/AppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class AppTests: XCTestCase {
let app = try await buildApplication(args)
try await app.test(.router) { client in
try await client.execute(uri: "/", method: .get) { response in
XCTAssertEqual(response.body, ByteBuffer(string: "Hello!"))
XCTAssertEqual(response.body, ByteBuffer(string: "Hello! Trigger an email by visiting /send_email endpoint!"))
}
}
}
Expand Down

0 comments on commit a141348

Please sign in to comment.