Skip to content

Commit

Permalink
fix(dim-web): route react routes properly (#545)
Browse files Browse the repository at this point in the history
Closes #543
  • Loading branch information
mental32 committed Apr 12, 2023
1 parent 9211b4b commit 03511cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dim/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,14 @@ pub async fn warp_core(
.or(invites::filters::delete_token(conn.clone()))
}),
)
.route_service("/", warp::service(routes::statik::filters::react_routes()))
.route_service(
"/*path",
warp::service(routes::statik::filters::react_routes()),
)
.route_service(
"/static/*path",
warp::service(
routes::statik::filters::dist_static().or(routes::statik::filters::react_routes()),
),
warp::service(routes::statik::filters::dist_static()),
)
.route("/ws", dim_web::axum::routing::get(ws_handler))
.with_state(AppState {
Expand Down

0 comments on commit 03511cf

Please sign in to comment.