Integrated the DocCMiddleware middleware into the AppBuilder builder in the app target.
This commit is contained in:
parent
19a54b25ae
commit
c59b2ba453
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user