Skip to content

Commit

Permalink
Merge pull request #45 from fiap-soat-tech-challenge/fix_routes_3
Browse files Browse the repository at this point in the history
Fix routes 3
  • Loading branch information
jonilsonds9 authored Feb 21, 2024
2 parents 3eed183 + 35ffd3b commit f02f4f4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions infra/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ resource "aws_lb_listener_rule" "clientes_rule" {

condition {
path_pattern {
values = ["/api/clientes*"]
values = ["/api/clientes", "/api/clientes/*"]
}
}
}
Expand All @@ -156,8 +156,9 @@ resource "aws_lb_listener_rule" "pedidos_rule" {
path_pattern {
values = [
"/api/pedidos*",
"/api/produtos*",
"/api/categorias*"
"/api/produtos",
"/api/produtos/*",
"/api/categorias"
]
}
}
Expand All @@ -173,7 +174,7 @@ resource "aws_lb_listener_rule" "pagamentos_rule" {

condition {
path_pattern {
values = ["/api/pagamentos*"]
values = ["/api/pagamentos/*"]
}
}
}
Expand All @@ -188,7 +189,7 @@ resource "aws_lb_listener_rule" "producao_rule" {

condition {
path_pattern {
values = ["/api/producao*"]
values = ["/api/cozinha", "/api/cozinha/*"]
}
}
}

0 comments on commit f02f4f4

Please sign in to comment.