From 391038b6a67ddea3d3efb67c44bb3feb64360eae Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 29 Mar 2023 08:28:56 +0000 Subject: feat(router): modify content from post-route callback --- src/handler.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/handler.rs') diff --git a/src/handler.rs b/src/handler.rs index 15dfd6d..c5e23e8 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -16,12 +16,17 @@ // Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only -use crate::{returnable, returnable::RouteContext, Response}; +use crate::{ + returnable, + returnable::{CallbackContext, RouteContext}, + Response, +}; pub type RouteResponse = Box) -> Response<'_> + Send + Sync>; pub type ErrorResponse = Box) -> Response<'_> + Send + Sync>; -pub type Callback = - Box) + Send + Sync>; +pub type Callback = Box) + Send + Sync>; +pub type CleanupCallback = + Box, &mut String) + Send + Sync>; pub type Partial = Box) -> String + Send + Sync>; -- cgit v1.2.3