We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a9a10 commit 150f9b6Copy full SHA for 150f9b6
main.go
@@ -5,6 +5,7 @@ import (
5
"os"
6
"path/filepath"
7
"regexp"
8
+ "strings"
9
10
"gofr.dev/pkg/gofr"
11
)
@@ -19,8 +20,14 @@ func main() {
19
20
21
staticFilePath := app.Config.GetOrDefault("STATIC_DIR_PATH", defaultStaticFilePath)
22
- app.UseMiddleware(func(_ http.Handler) http.Handler {
23
+ app.UseMiddleware(func(h http.Handler) http.Handler {
24
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
25
+ if strings.Contains(r.URL.Path, "/.well-known/") {
26
+ h.ServeHTTP(w, r)
27
+
28
+ return
29
+ }
30
31
filePath := filepath.Join(staticFilePath, r.URL.Path)
32
33
// check if the path has a file extension
0 commit comments