We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfb2360 commit ca50e26Copy full SHA for ca50e26
.dockerignore
@@ -48,4 +48,7 @@ tmp/
48
49
# Ignore build and deployments directories
50
deployments/
51
-build/
+build/
52
+
53
+# Example requests files
54
+*.http
internal/sms-gateway/handlers/root.go
@@ -9,6 +9,14 @@ type rootHandler struct {
9
}
10
11
func (h *rootHandler) Register(app *fiber.App) {
12
+ app.Use(func(c *fiber.Ctx) error {
13
+ if c.Path() == "/api" {
14
+ return c.Redirect("/api/", fiber.StatusMovedPermanently)
15
+ }
16
17
+ return c.Next()
18
+ })
19
20
h.healthHandler.Register(app)
21
app.Static("/api", "api")
22
0 commit comments