Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ serde_json = { version = "1" }
# Error declaration/context
snafu = "0.8.8"
# Serve static assets directly from the binary
# Wait for https://github.com/M4SS-Code/static-serve/pull/8
# Using dev branch because of: https://github.com/M4SS-Code/static-serve/pull/8
# static-serve = "0.3.0"
static-serve = { git = "https://github.com/angrynode/static-serve", branch = "infallible-mimetype", features = [ "infallible" ] }
static-serve = { git = "https://github.com/M4SS-Code/static-serve" }
# Extra tokio features:
# fs: Filesystem IO integration
# rt: Single-threaded runtime
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use state::error::AppStateError;

pub fn router(state: state::AppState) -> Router {
// Embed the assets in the binary, generating the static_router function
embed_assets!("assets");
embed_assets!("assets", allow_unknown_extensions = true);

Router::new()
// Register dynamic routes
Expand Down
Loading