Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Browsing feature for Pode Static Route #1266

Merged
merged 17 commits into from
Apr 4, 2024
Merged

File Browsing feature for Pode Static Route #1266

merged 17 commits into from
Apr 4, 2024

Conversation

mdaneri
Copy link
Contributor

@mdaneri mdaneri commented Mar 25, 2024

Implementation of File Browser for static route + documentation

Description of the Change

Pode today has no option that allows browsing a directory when a default page is not available.
The idea is to add a new -FileBrowser parameter to Add-PodeStaticRoute and Add-PodeStaticRouteGroup

####Parameter

-FileBrowser When supplied, If the path is a folder, instead of returning 404, will return A browsable content of the directory.

Related Issue

#1237

Implementation of File Browser for static route + documentation
@mdaneri mdaneri changed the title File Browsing feature for Pode Static Route #1237 File Browsing feature for Pode Static Route Mar 25, 2024
@Badgerati Badgerati linked an issue Mar 30, 2024 that may be closed by this pull request
docs/Tutorials/Routes/Utilities/StaticContent.md Outdated Show resolved Hide resolved
src/Private/Helpers.ps1 Outdated Show resolved Hide resolved
src/Public/Routes.ps1 Outdated Show resolved Hide resolved
docs/Tutorials/Configuration.md Outdated Show resolved Hide resolved
docs/Tutorials/Routes/Utilities/StaticContent.md Outdated Show resolved Hide resolved
src/Private/Responses.ps1 Outdated Show resolved Hide resolved
src/Misc/default-file-browsing.html.pode Outdated Show resolved Hide resolved
src/Private/Responses.ps1 Outdated Show resolved Hide resolved
src/Private/Responses.ps1 Outdated Show resolved Hide resolved
src/Misc/default-file-browsing.html.pode Outdated Show resolved Hide resolved
src/Private/Responses.ps1 Outdated Show resolved Hide resolved
src/Private/Responses.ps1 Outdated Show resolved Hide resolved
src/Private/Helpers.ps1 Outdated Show resolved Hide resolved
@Badgerati Badgerati added this to the 2.10.0 milestone Apr 3, 2024
src/Private/Helpers.ps1 Outdated Show resolved Hide resolved
Copy link
Owner

@Badgerati Badgerati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😄 I'll get it merged in a bit

@Badgerati Badgerati merged commit c418442 into Badgerati:develop Apr 4, 2024
17 checks passed
@mdaneri mdaneri deleted the #1237 branch April 4, 2024 14:37
@Badgerati Badgerati mentioned this pull request Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Browsing feature for Pode Static Route
2 participants