murgamu 0.8.4

A NestJS-inspired web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::server::aliases::MurRouteHandler;

#[derive(Debug, Clone)]
pub struct MurRouteInfo {
	pub method: String,
	pub path: String,
	pub controller: String,
	pub handler: String,
}

#[derive(Clone)]
pub struct MurRouteDefinition {
	pub method: String,
	pub path: String,
	pub handler: MurRouteHandler,
	pub is_public: bool,
	pub allowed_roles: Vec<String>,
}