summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index a6d752c..472d68f 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -72,6 +72,10 @@ impl Args {
let app = App::from(pool);
let app = routers()
+ .route_layer(middleware::from_fn_with_state(
+ app.clone(),
+ events::expire::middleware,
+ ))
.route_layer(middleware::from_fn(clock::middleware))
.with_state(app);