Skip to content

Commit 6e34490

Browse files
committed
Renamed uptime to health.
1 parent cb6c188 commit 6e34490

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Sources/App/Controllers/UptimeCheckController.swift renamed to Sources/App/Controllers/HealthCheckController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Fluent
1616
import Plot
1717
import Vapor
1818

19-
enum UptimeCheckController {
19+
enum HealthCheckController {
2020

2121
@Sendable
2222
static func show(req: Request) async throws -> String {

Sources/App/Core/SiteURL.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ enum SiteURL: Resourceable, Sendable {
134134
case stylesheets(String)
135135
case supporters
136136
case tryInPlayground
137-
case uptimeCheck
137+
case healthCheck
138138
case validateSPIManifest
139139

140140
var path: String {
@@ -255,8 +255,8 @@ enum SiteURL: Resourceable, Sendable {
255255
case .tryInPlayground:
256256
return "try-in-a-playground"
257257

258-
case .uptimeCheck:
259-
return "uptime-check"
258+
case .healthCheck:
259+
return "health-check"
260260

261261
case .validateSPIManifest:
262262
return "validate-spi-manifest"
@@ -280,7 +280,7 @@ enum SiteURL: Resourceable, Sendable {
280280
.siteMapStaticPages,
281281
.supporters,
282282
.tryInPlayground,
283-
.uptimeCheck,
283+
.healthCheck,
284284
.validateSPIManifest:
285285
return [.init(stringLiteral: path)]
286286

Sources/App/routes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func routes(_ app: Application) throws {
129129
}
130130

131131
do { // Uptime check
132-
app.get(SiteURL.uptimeCheck.pathComponents, use: UptimeCheckController.show).excludeFromOpenAPI()
132+
app.get(SiteURL.healthCheck.pathComponents, use: HealthCheckController.show).excludeFromOpenAPI()
133133
}
134134

135135
do { // spi.yml validation page

0 commit comments

Comments
 (0)