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{
|
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",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user