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

14 lines
342 B
Plaintext
Raw Normal View History

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