Fix version route
This commit is contained in:
@ -14,8 +14,8 @@ private func authorize(_ request: Request) throws {
|
||||
|
||||
func routes(_ app: Application) throws {
|
||||
|
||||
app.getCatching("version") { _ in
|
||||
return "\(server.classifierVersion)"
|
||||
app.get("version") { _ in
|
||||
"\(server.classifierVersion)"
|
||||
}
|
||||
|
||||
// Add or change a cap
|
||||
|
Reference in New Issue
Block a user