feat: Moves vendor branch views to their own files, starts to implement snapshot testing for html
This commit is contained in:
@@ -40,7 +40,13 @@ public func configure(_ app: Application) async throws {
|
||||
|
||||
app.mount(
|
||||
SiteRoute.router,
|
||||
middleware: { $0.middleware() },
|
||||
middleware: {
|
||||
if app.environment == .testing {
|
||||
return nil
|
||||
} else {
|
||||
return $0.middleware()
|
||||
}
|
||||
},
|
||||
use: siteHandler
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user