Developer Docs - Helix - Content Block
With your application and endpoints ready you're pretty much set on the backend. While you can technically call the backend from any webpage by importing the HTMX library yourself, we highly recommend using the provided Lava Application Content block on the front-end. This block automatically registers HTMX for you and provides convenience features and styling.
Below are the block settings for the Lava Application Content Block:
The configuration of the block includes:
Access Endpoints
When you access endpoints from the Lava template you'll want to use the notation of:
hx-get="^/application-slug/endpoint-slug"
The ^ character indicates that the route is associated with a Lava application. While you can access the endpoint using the full API route, using the caret simplifies the process.
The full endpoint URL is /api/v2/lava-app/1/{application-slug}/{endpoint-slug}.