supprt by sku
This commit is contained in:
@@ -224,9 +224,9 @@ func (s *PoolServer) HandleCheckout(w http.ResponseWriter, r *http.Request, id C
|
||||
reply, err := s.pool.Process(id, Message{
|
||||
Type: CreateCheckoutOrderType,
|
||||
Content: &messages.CreateCheckoutOrder{
|
||||
Terms: "https://elk.tornberg.me/terms",
|
||||
Checkout: "https://elk.tornberg.me/checkout",
|
||||
Confirmation: "https://elk.tornberg.me/confirmation",
|
||||
Terms: "https://slask-finder.tornberg.me/terms",
|
||||
Checkout: "https://slask-finder.tornberg.me/checkout",
|
||||
Confirmation: "https://slask-finder.tornberg.me/confirmation",
|
||||
Push: "https://cart.tornberg.me/push",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
/** end */
|
||||
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user