Fix version route

This commit is contained in:
Christoph Hagen
2022-06-24 00:23:02 +02:00
parent 1f08a77eaf
commit b707c27734
2 changed files with 13 additions and 2 deletions

View File

@ -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