predawn 0.9.0

Predawn is a Rust web framework like Spring Boot.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod openapi_json;
pub mod ui;

use std::sync::Arc;

use http::Method;
use indexmap::IndexMap;
use rudi::Context;

use crate::{handler::DynHandler, normalized_path::NormalizedPath};

pub trait Plugin {
    fn create_route(
        self: Arc<Self>,
        cx: &mut Context,
    ) -> (NormalizedPath, IndexMap<Method, DynHandler>);
}