api model
create an api model in the frontend to send requests to the server