Skip to content

Commit

Permalink
exposes new options in staticFilesConfig
Browse files Browse the repository at this point in the history
Changes:

- expose follow_symlinks
- expose fall_through
  • Loading branch information
devkral committed Jan 9, 2025
1 parent 3367fa2 commit 9df48c5
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 9df48c5

Please sign in to comment.