1👍
You can create an endpoint with your backend and return it via your backend application and consumes it with your frontend using axios or something like that. I really suggest you watch some of the great tutorials out there like :
SringBoot Tutorial by AmigosCode
There’s the documentation on axios :
Source:stackexchange.com