diff --git a/src/http/handler.rs b/src/http/handler.rs index bfd88d0..fa2cc3e 100644 --- a/src/http/handler.rs +++ b/src/http/handler.rs @@ -60,7 +60,7 @@ fn request_handler(client: &mut super::HttpStream) { ["entity", entity] => { res.status(501); error = Some(Error::new(Kind::NotImplementedError, Class::ServerError)) - } + }, [endpoint] => match req.method { Method::POST => return endpoint_handler(client, &req, res, endpoint), _ => {