A simple guide to adding a WP REST API controller https://jacobmartella.me/web-development/wordpress/simple-guide-adding-wp-rest-api-controller/