updated rust version, minor fixes
This commit is contained in:
+2
-3
@@ -34,7 +34,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.allow_any_header()
|
||||
.supports_credentials();
|
||||
|
||||
let app = App::new()
|
||||
App::new()
|
||||
.wrap_fn(|req, srv| {
|
||||
let mut passed: bool;
|
||||
let request_url: String = String::from(req.uri().path());
|
||||
@@ -73,8 +73,7 @@ async fn main() -> std::io::Result<()> {
|
||||
}
|
||||
})
|
||||
.wrap(cors)
|
||||
.configure(views::views_factory);
|
||||
app
|
||||
.configure(views::views_factory)
|
||||
})
|
||||
.bind("0.0.0.0:8001")?
|
||||
.run()
|
||||
|
||||
Reference in New Issue
Block a user