Remove old code

This commit is contained in:
Emi Simpson 2021-11-09 11:35:04 -05:00
parent fbc49bcf69
commit 29f436f938
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 4 additions and 4 deletions

View File

@ -20,16 +20,16 @@ pub fn go(domains: &[&str]) {
}
}
/// An endpoint and the associated data
///
/// Each route represents a set of logic that should be used to respond to the request,
/// and the necessary information from the request in order to do so
pub enum Route<'a> {
Next(&'a str),
Prev(&'a str),
NotFound,
}
pub enum RuntimeStatic {
JsonIndex,
}
impl<'a> Route<'a> {
pub fn parse_request(r: &'a Request) -> Self {
let segments: Vec<_> = r.url()