Hein
57e7503389
feat(staticweb): enhance fallback logic for extensionless paths
...
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Failing after -35m7s
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Failing after -35m7s
Build , Vet Test, and Lint / Lint Code (push) Failing after -35m7s
Build , Vet Test, and Lint / Build (push) Failing after -35m7s
Tests / Unit Tests (push) Failing after -35m8s
Tests / Integration Tests (push) Failing after -35m8s
* Added support for serving index.html for extensionless paths
* Updated isStaticAsset to exclude paths without extensions from static asset checks
2026-05-21 13:30:39 +02:00
Hein
0d50bcfee6
fix(provider): enhance file opening logic with alternate path. Handling broken cases to be compatible with Bitech clients
...
* Implemented alternate path handling for file retrieval
* Improved error messaging for file not found scenarios
2026-03-24 09:02:17 +02:00
8504b6d13d
fix(staticweb): add nil check to WithStripPrefix helper
...
Prevent panic when WithStripPrefix is called with a nil provider by
using reflection to check for typed nil pointers stored in interfaces.
2026-01-03 14:47:21 +02:00
2017465cb8
feat(staticweb): add path prefix stripping to all filesystem providers
...
Add PrefixStrippingProvider interface and implement it in all providers
(EmbedFSProvider, LocalFSProvider, ZipFSProvider) to support serving
files from subdirectories at the root level.
2026-01-03 14:39:51 +02:00
d33747c2d3
feat(staticweb): add path prefix stripping to EmbedFSProvider
...
Adds WithStripPrefix method to allow serving files from subdirectories
at the root path. For example, files at /dist/assets can be made
accessible via /assets by calling WithStripPrefix("/dist").
2026-01-03 14:25:04 +02:00
Hein
49cdc6f17b
fix: lint issues after merge
2025-12-30 17:46:33 +02:00
Hein
9209193157
fix: lint issues and docs
2025-12-30 17:44:57 +02:00
Hein
28fd88fff1
staticweb package for easier static web server hosting
2025-12-30 17:31:07 +02:00