chore: update dependencies for axum and shuttle packages
This commit is contained in:
parent
515e7b3dd8
commit
c57dd13356
2
.gitignore
vendored
2
.gitignore
vendored
@ -24,7 +24,7 @@ Cargo.lock
|
||||
# already existing elements were commented out
|
||||
|
||||
#/target
|
||||
|
||||
.shuttle/
|
||||
node_modules/
|
||||
|
||||
**/*.pdf
|
||||
|
@ -4,8 +4,8 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
axum = "0.7.4"
|
||||
shuttle-axum = "0.45.0"
|
||||
shuttle-runtime = "0.45.0"
|
||||
axum = "0.8.1"
|
||||
shuttle-axum = "0.52.0"
|
||||
shuttle-runtime = "0.52.0"
|
||||
tokio = "1.28.2"
|
||||
tower-http = { version = "0.5.2", features = ["fs"] }
|
||||
tower-http = { version = "0.6.2", features = ["fs"] }
|
||||
|
4
Shuttle.toml
Normal file
4
Shuttle.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[build]
|
||||
assets = [
|
||||
"frontend/dist/frontend/browser/*",
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Frontend</title>
|
||||
<title>Digitaler Frieden</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="public/favicon.ico">
|
||||
|
@ -2,10 +2,9 @@ use axum::Router;
|
||||
use tower_http::services::ServeDir;
|
||||
|
||||
#[shuttle_runtime::main]
|
||||
#[allow(clippy::unused_async)]
|
||||
async fn main() -> shuttle_axum::ShuttleAxum {
|
||||
let router = Router::new()
|
||||
// .route("/", get(hello_world))
|
||||
.nest_service("/", ServeDir::new("frontend/dist"));
|
||||
let router = Router::new().fallback_service(ServeDir::new("frontend/dist/frontend/browser"));
|
||||
|
||||
Ok(router.into())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user