Skip to content

Commit fee8aaa

Browse files
authored
fix: tests (#22)
1 parent 881507a commit fee8aaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/transaction_service/Sources/App/Controllers/transaction/TransactionController.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ struct TransactionQuery: Content {
1212

1313
struct TransactionController: RouteCollection, TransactionProtocol {
1414
func boot(routes: RoutesBuilder) throws {
15-
routes.get("/stats/transaction/:id", use: self.get)
16-
routes.get("/stats/transaction/health", use: self.getHealth)
15+
routes.get("stats","transaction",":id", use: self.get)
16+
routes.get("stats","transaction", "health", use: self.getHealth)
1717
}
1818

1919
/**

services/transaction_service/Tests/AppTests/AppTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ final class AppTests: XCTestCase {
77
defer { app.shutdown() }
88
try configure(app)
99

10-
try app.test(.GET, "health", afterResponse: { res in
10+
try app.test(.GET, "stats/transaction/health", afterResponse: { res in
1111
XCTAssertEqual(res.status, .ok)
1212
})
1313
}

0 commit comments

Comments
 (0)