Skip to content

Commit

Permalink
exposes new options in staticFilesConfig (#469)
Browse files Browse the repository at this point in the history
- expose follow_symlinks
- expose fall_through
  • Loading branch information
devkral authored Jan 9, 2025
1 parent c729d3c commit b292478
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions esmerald/config/static_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,23 @@ class StaticFilesConfig(BaseModel):
),
] = None

fall_through: Annotated[
bool,
Doc(
"""
Activate fall-through routing.
"""
),
] = False
follow_symlink: Annotated[
bool,
Doc(
"""
Follow symlinks.
"""
),
] = False

@field_validator("path")
def validate_path(cls, value: str) -> str:
if "{" in value:
Expand Down

0 comments on commit b292478

Please sign in to comment.