aboutsummaryrefslogtreecommitdiff
path: root/src/urls/mod.rs
blob: 1acf186197bd34605cfa795401b3121a35d9fd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::http::{Request, Response};

pub type View = fn(Request) -> Response;

pub enum Path {
    View {
        url: &'static str,
        view: View,
        name: &'static str,
    },

    Include {
        url: &'static str,
        content: &'static [Path],
    },
}