We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
filesystem
1 parent 85afc69 commit 9dfe593Copy full SHA for 9dfe593
internal/sms-gateway/handlers/root.go
@@ -26,8 +26,10 @@ func (h *rootHandler) Register(app *fiber.App) {
26
Root: http.FS(swagger.Docs),
27
PathPrefix: "docs",
28
MaxAge: 1 * 24 * 60 * 60,
29
- }))
30
- // app.Static("/api", "api")
+ }), func(c *fiber.Ctx) error {
+ // The filesystem middleware set 404 status before next, so we need to override it
31
+ return c.Status(fiber.StatusOK).Next()
32
+ })
33
}
34
35
func newRootHandler(healthHandler *healthHandler) *rootHandler {
0 commit comments