bots-frontend/store/lockey.js

18 lines
429 B
JavaScript

import {http} from "../utils/http";
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 http.post(orderRepository.url.payment(), body);
}
}