We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470e7fb commit 8c52395Copy full SHA for 8c52395
frontend/handler.go
@@ -35,14 +35,13 @@ func staticMiddleware(root string) gin.HandlerFunc {
35
return func(c *gin.Context) {
36
_, err := fs.Stat(embeddedFiles, "dist"+c.Request.URL.Path)
37
if err != nil {
38
- c.AbortWithStatus(http.StatusNotFound)
+ c.Next()
39
return
40
}
41
-
42
fileServer.ServeHTTP(c.Writer, c.Request)
+
43
44
45
46
func staticMiddlewareNoRoute(root string) gin.HandlerFunc {
47
fileServer := http.FileServer(getFileSystem(root))
48
0 commit comments