How to use Backend Functions via the Front End

I am a fairly new Developer who has just build his first Full Stack App with Django Rest Framework and a REACT Front End.

I want to keep my business logic primarily in my backend, but how do I trigger the functions in my backend? It is counterintuitive to me to just make an Resource Endpoint when I do not necessarily need information in my front-end.

For example - I'm working on a course planning application where you need to inform several instructors via email if they are interested in supervising the course.

Should I therefore just make an endpoint like this:<course_id>/inform_instructors and use the business logic there? Or are there any other ways to use the business logic in the backend?

Somehow this does not look right for me.

Thanks in advance!

Back to Top