on b113ab0 help sign in
Sources/App/routes.swift−4
since splitsnapshots
unifiedsplit
@@ -33,10 +33,6 @@ public func routes(_ router: Router) throws {
33 }
33 }
34 return post
34 return post
35 }
35 }
36−
37− router.get("posts") { (req) -> [Post] in
38− return Array(Post.storage.values)
39− }
40}
36}
41
37
42enum DatabaseError: Error, AbortError {
38enum DatabaseError: Error, AbortError {
Sources/Run/main.swift−1
@@ -1,7 +1,6 @@
1import App
1import App
2
2
3#if os(Linux)
3#if os(Linux)
4−import SwiftGlibc
5srandom(UInt32(time(nil)))
4srandom(UInt32(time(nil)))
6#endif
5#endif
7
6