Skip to content

Commit

Permalink
Adds an API to grab a basket based on current user and specified syst…
Browse files Browse the repository at this point in the history
…em (#181)
  • Loading branch information
jkachel authored Dec 9, 2024
1 parent dd2f21f commit cb8a051
Show file tree
Hide file tree
Showing 8 changed files with 363 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,6 @@
"line_number": 1
}
],
"docker-compose-apisix.yml": [
{
"type": "Secret Keyword",
"filename": "docker-compose-apisix.yml",
"hashed_secret": "965f383cb0ba71f9e9d33ae7eec9380590a4e9e3",
"is_verified": false,
"line_number": 43
}
],
"docker-compose.yml": [
{
"type": "Basic Auth Credentials",
Expand All @@ -194,5 +185,5 @@
}
]
},
"generated_at": "2024-11-21T20:53:59Z"
"generated_at": "2024-12-05T14:34:37Z"
}
2 changes: 2 additions & 0 deletions cart/templates/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
<select name="product" id="product">
<option></option>
{% for product in products %}
{% if product.system.id == basket.integrated_system.id %}
<option value="{{ product.system.slug }}/{{ product.sku }}">{{ product.system.name }} - {{ product.name }} ${{ product.price }}</option>
{% endif %}
{% endfor %}
</select>
</div>
Expand Down
1 change: 1 addition & 0 deletions config/apisix/apisix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ routes:
- "/auth/*"
- "/static/*"
- "/favicon.ico"
- "/checkout/*"
- id: 2
name: "ue-default"
desc: "Wildcard route for the rest of the system - authentication required"
Expand Down
Loading

0 comments on commit cb8a051

Please sign in to comment.