supprt by sku
Some checks failed
Build and Publish / BuildAndDeploy (push) Successful in 3m7s
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
matst80
2025-04-18 15:44:46 +02:00
parent 1397822a1a
commit 7d27257a71
2 changed files with 4 additions and 4 deletions

View File

@@ -224,9 +224,9 @@ func (s *PoolServer) HandleCheckout(w http.ResponseWriter, r *http.Request, id C
reply, err := s.pool.Process(id, Message{ reply, err := s.pool.Process(id, Message{
Type: CreateCheckoutOrderType, Type: CreateCheckoutOrderType,
Content: &messages.CreateCheckoutOrder{ Content: &messages.CreateCheckoutOrder{
Terms: "https://elk.tornberg.me/terms", Terms: "https://slask-finder.tornberg.me/terms",
Checkout: "https://elk.tornberg.me/checkout", Checkout: "https://slask-finder.tornberg.me/checkout",
Confirmation: "https://elk.tornberg.me/confirmation", Confirmation: "https://slask-finder.tornberg.me/confirmation",
Push: "https://cart.tornberg.me/push", Push: "https://cart.tornberg.me/push",
}, },
}) })

View File

@@ -10,7 +10,7 @@ import (
/** end */ /** end */
func FetchItem(sku string) (*index.DataItem, error) { func FetchItem(sku string) (*index.DataItem, error) {
res, err := http.Get("https://slask-finder.tornberg.me/api/get/" + sku) res, err := http.Get("https://slask-finder.tornberg.me/api/by-sku/" + sku)
if err != nil { if err != nil {
return nil, err return nil, err
} }