added vue component
This commit is contained in:
+7
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user