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

14 lines
342 B
Plaintext
Raw Normal View History

2019-10-09 11:53:58 +11:00
export default function(helpers) {
const { response } = helpers;
2019-10-10 12:08:52 +11:00
this.get("/patrons", () => response({ email: "hello@example.com" }));
2019-10-10 13:52:55 +11:00
2019-10-10 14:18:44 +11:00
this.get("/groups/:plan", () => {
2019-10-10 13:52:55 +11:00
return response({ full_name: "Saboo", bio_cooked: "This is the plan" });
});
2019-10-10 14:18:44 +11:00
this.get("/patrons/plans", () => {
return response({ plans: [] });
});
2019-10-09 11:53:58 +11:00
}