Skip to content

Commit a9e5c59

Browse files
Refactor
1 parent 3513eb9 commit a9e5c59

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Sources/App/Models/SyntaxResponse.swift

-7
This file was deleted.

Sources/App/routes.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,20 @@ func routes(_ app: Application) throws {
7979
}
8080
}
8181

82-
let swiftVersion = Environment.get("SWIFT_VERSION") ?? ""
82+
let swiftVersion = "Swift 5.8.1"
8383

8484
private struct RequestParameter: Decodable {
8585
let code: String
8686
let options: [String]?
8787
let branch: String?
8888
}
8989

90+
struct SyntaxResponse: Content {
91+
let syntaxHTML: String
92+
let syntaxJSON: String
93+
let swiftVersion: String
94+
}
95+
9096
private let sampleCode = #"""
9197
import Foundation
9298

0 commit comments

Comments
 (0)