If I understand you correctly, you would like to expose an API on your site. You can do this using the http-functions API.
See this example:
Expose and Access Site APIs
Use MyApi and MyApiClient to expose and access external APIs.
If I understand you correctly, you would like to expose an API on your site. You can do this using the http-functions API.
See this example:
Expose and Access Site APIs
Use MyApi and MyApiClient to expose and access external APIs.