Maak aangepaste API's

I’ve been using GitHub - discourse/discourse-subscriptions: A Discourse plugin that allows payments and subscription management via Stripe. · GitHub as a model for adding a model (you don’t need a full model, but discourse-subscriptions/config/routes.rb at main · discourse/discourse-subscriptions · GitHub gives you an example of how to add a route. That and add_to_class is most of what you need to know. Good luck!