added vue component

This commit is contained in:
2023-09-15 19:58:59 +02:00
parent b3061ad79a
commit 018bbf3918
34 changed files with 4134 additions and 458 deletions
+7 -1
View File
@@ -19,7 +19,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
let app = App::new()
.wrap_fn(|req, srv| {
let passed: bool;
let mut passed: bool;
let request_url: String = String::from(req.uri().path().clone());
log::info!("Request Url: {}", request_url);
@@ -33,6 +33,12 @@ async fn main() -> std::io::Result<()> {
passed = true;
}
if req.path().contains("user/create") {
passed = true;
}
log::info!("passed: {:?}", passed);
let end_result = match passed {
true => Either::Left(srv.call(req)),
false => Either::Right(ok(req.into_response(