Skip to content

Commit 75f2252

Browse files
committed
feat(http): add route for swap signature in middleware
1 parent 386ed1d commit 75f2252

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/transport/http/http.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ func apiKeyMiddleware(appConfig *config.AppConfig) gin.HandlerFunc {
4444
// Skip API key check for health check, swagger routes, and transactions routes
4545
if c.Request.URL.Path == "/healthz" ||
4646
strings.HasPrefix(c.Request.URL.Path, "/swagger") ||
47-
strings.HasPrefix(c.Request.URL.Path, "/api/v1/transactions") {
47+
strings.HasPrefix(c.Request.URL.Path, "/api/v1/transactions") ||
48+
strings.HasPrefix(c.Request.URL.Path, "/api/v1/swap/generate-signature") {
4849
c.Next()
4950
return
5051
}

0 commit comments

Comments
 (0)