krustie 0.3.0

Krustie is a simple and easy-to-use backend framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Holds the route data and the controller function

# Example

```rust
use krustie::{Server, Router, Endpoint, HttpMethod, StatusCode, Request, Response};

fn get(req: &Request, res: &mut Response) {
  res.status(StatusCode::Ok).body_text("Hello, World!");
}

# let mut router = Router::new();
let endpoint = Endpoint::new(HttpMethod::GET, get);

router.use_endpoint("/hello", endpoint);

```