Integrated the DocCMiddleware middleware into the AppBuilder builder in the app target.
This commit is contained in:
1 parent
19a54b25ae
commit
c59b2ba453
1 file changed
+4
@@ -32,6 +32,10 @@ public struct AppBuilder {
|
|||||||
|
|
||||||
let router = router(logger: logger)
|
let router = router(logger: logger)
|
||||||
|
|
||||||
|
router.addMiddleware {
|
||||||
|
DocCMiddleware("Resources/Public")
|
||||||
|
}
|
||||||
|
|
||||||
return Application(
|
return Application(
|
||||||
router: router,
|
router: router,
|
||||||
configuration: .init(
|
configuration: .init(
|
||||||
|
|||||||
Reference in new issue
Block a user