Comments (3)
#121 fixed absolute paths on windows
app.Static("public")
// http://localhost:3000/index.html
// http://localhost:3000/style.css
// http://localhost:3000/main.js
app.Static("public/index.html")
// http://localhost:3000 => index.html
app.Static("*", "public/index.html")
// http://localhost:3000/john => index.html
// Wildcard paths work for single files now
app.Static("/ok*", "public/index.html")
// http://localhost:3000/ok/test => index.html
from fiber.
Thanks for opening your first issue here! ๐ Be sure to follow the issue template!
from fiber.
@zhongwei thx for reporting! ๐
Can you please send PR for fix this?
from fiber.
Related Issues (20)
- ๐ [Bug]: CORS middleware should ignore config AllowedOrigins when AllowedOriginsFunc is defined HOT 1
- Why isn't c.Params(param) capturing the route parameter in a middle handler? HOT 6
- ๐ค [Question]: best way to check if a path is registered in the app HOT 3
- ๐ค [Question]: app.OnShutdown not printing to stdout HOT 6
- ๐ค [Question]: How does the prefork in Fiber work? HOT 4
- ๐ [v3 Proposal]: Enabling External Registration of Constraints for Router API HOT 1
- Injectable route constraints HOT 1
- ๐ค [Question]: Dynamic Session ID Generation HOT 4
- SessionID new on each request (session mw) HOT 13
- Feature request: Add docs for https://github.com/gofiber/fiber/pull/2796 HOT 1
- ๐ [Bug]: Set cookies in different paths HOT 1
- ๐งน [v3 Maintenance]: GetReqHeaders and GetRespHeaders are missing from the main branch but still documented HOT 4
- ๐ [Proposal]: Add Support for the Private Network Access CORS Header `Access-Control-Request-Private-Network` HOT 7
- Is there built in way to specify file types to be uploaded?๐ค [Question]: HOT 1
- ๐งน [Maintenance]: Update golangci-lint HOT 1
- ๐ค [Question]: I'm using gRPC to stream response to fiber, how can I stream each response to the client? HOT 1
- ๐ [Bug]: `c.Bind.Query()` cannot parse data to struct correcttly with structTag. HOT 4
- ๐ค [Question]: CSRF check is failing HOT 3
- ๐ค [Question]: How to add space at the end of header value HOT 3
- ๐ค [Question]: Is there any way to use existing storage instead of creating a new one when app restarts? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiber.