bots-frontend/store/lockey.js
2022-11-18 11:15:16 +07:00

19 lines
472 B
JavaScript

import { http } from "../utils/http";
import { http2 } from "../utils/http2";
import {botsRepository} from "../repository/bots";
import { orderRepository } from "../repository/order";
export class LockeyStore {
constructor(context) {
this.context = context
}
createOrder(body) {
return http.post(botsRepository.url.createOrder(), body);
}
createPayment(body) {
return http2.post(orderRepository.url.payment(), body);
}
}