import { request } from "../../app/api.js";

export function createProApi(requester = request) {
  return {
    status: () => requester("/entitlement"),
    challenge: () => requester("/entitlement/challenges", { method: "POST", body: {} }),
    activate: (challenge, certificate) => requester("/entitlement/activate", { method: "POST", body: { challenge, certificate } }),
  };
}
export const proApi = createProApi();
