Skip to content

Commit ce7e00b

Browse files
getevoclaude
andcommitted
fix(static): use app.Get with wildcard instead of app.Use for static file serving
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b29b4dc commit ce7e00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fiber.evo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func Static(path string, dir string, config ...static.Config) fiber.Router {
267267
if len(config) > 0 {
268268
cfg = config[0]
269269
}
270-
return app.Use(path, static.New(dir, cfg))
270+
return app.Get(path+"/*", static.New(dir, cfg))
271271
}
272272

273273
// ShutdownWithTimeout gracefully shuts down the server. If the timeout is

0 commit comments

Comments
 (0)