Skip to content

Commit

Permalink
Add /api/ path prefix to api requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
anybodys committed Jul 6, 2024
1 parent ee27ede commit 3049dec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infra/app/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,14 @@ resource "google_compute_url_map" "default" {
path_matcher {
name = "api"
default_service = google_compute_backend_service.api.id
path_rule {
paths = ["/*"]
service = google_compute_backend_service.api.id
route_action {
url_rewrite {
path_prefix_rewrite = "/api/"
}
}
}
}
}

0 comments on commit 3049dec

Please sign in to comment.