diff --git a/README.md b/README.md index 3ff5dbe..6365549 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Sources/App/Application+build.swift b/Sources/App/Application+build.swift index 64a15a0..bfd3e65 100644 --- a/Sources/App/Application+build.swift +++ b/Sources/App/Application+build.swift @@ -50,7 +50,7 @@ func buildRouter() -> Router { } // 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 diff --git a/Tests/AppTests/AppTests.swift b/Tests/AppTests/AppTests.swift index b701701..32e8e2a 100644 --- a/Tests/AppTests/AppTests.swift +++ b/Tests/AppTests/AppTests.swift @@ -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!")) } } }