Forms are in integral part of your website, it's how people will contact you and submit leads.

Here are some common parameters to pass into your forms:

  1. success_url - this tells the server where to send the user next, after the form has been successfully submitted and processed. - Maybe a thank you page?
  2. failure_url - this does the opposite, it's where the user will be sent if the form is not processed successfully.

What are the endpoints that a form should go to?
  1. /api/lead - leads are submitted to the endpoint via a post request
  2. /ap/post - users can create posts on your website and they will be marked as user submitted, they will not be published by default.