Previously, SPA routes (e.g. `/dashboard`) bypassed custom index rewriting logic due to `actix_files` intercepting requests before the fallback handler. This hotfix reorders route registration and introduces explicit handling for unmatched paths and root (/) to support React-style routing with domain-specific index.html rewrites.
12 lines
248 B
TOML
12 lines
248 B
TOML
[package]
|
|
name = "servant"
|
|
version = "0.2.1"
|
|
edition = "2021"
|
|
authors = ["Andrew G. <me@nuark.xyz>"]
|
|
|
|
[dependencies]
|
|
actix-web = "4.7.0"
|
|
actix-files = "0.6.6"
|
|
clap = { version = "4.5.7", features = ["derive"] }
|
|
env_logger = "0.11.8"
|
|
log = "0.4.27"
|