discourse-subscriptions/test/javascripts/helpers/discourse-patrons-pretender...

14 lines
342 B
JavaScript

export default function(helpers) {
const { response } = helpers;
this.get("/patrons", () => response({ email: "hello@example.com" }));
this.get("/groups/:plan", () => {
return response({ full_name: "Saboo", bio_cooked: "This is the plan" });
});
this.get("/patrons/plans", () => {
return response({ plans: [] });
});
}