Files
discourse-subscriptions/assets/javascripts/discourse/discourse-subscriptions-route-map.js.es6
T
Justin DiRose 400313cded FEATURE: Allow creation of coupons in admin panel (#43)
Adds full support to create coupon/promo codes in the Admin > Plugins > Subscriptions section of the plugin. The Create Coupon button opens a form on the same page, and the active checkboxes toggle the active status of the coupon code.
2021-01-13 11:47:22 -06:00

23 lines
497 B
JavaScript

export default {
resource: "admin.adminPlugins",
path: "/plugins",
map() {
this.route("discourse-subscriptions", function () {
this.route("dashboard");
this.route("products", function () {
this.route("show", { path: "/:product-id" }, function () {
this.route("plans", function () {
this.route("show", { path: "/:plan-id" });
});
});
});
this.route("coupons");
this.route("subscriptions");
});
},
};