You can download the project template from:
www.b4x.com
Steps:
Enable home or index page
[Project Template] EndsMeet Server
Version: 1.01 This is a project template for EndsMeet server library. It depends on EndsMeet, MiniHtml and WebApiUtils libraries. GitHub: https://github.com/pyhoon/EndsMeet-Server

Steps:
- Just drop the template into B4J additional libraries folder.
- Open B4J IDE and create a new project.
- Recommended: Use LibDownloader to download the dependencies.
- The starter template is now ready to use.
Enable home or index page
- The following code add a GET route to load the index page.
B4X:app.Get("", "Index")
- The following code add a POST route
B4X:app.Post("/modal", "Index")
- Take note that in Index.bas (GenerateIndex sub), we use HTMX hx-post instead of hx-get
B4X:Button.attribute2(CreateMap("hx-post": "/modal", _ "hx-target": "#modals-here", _ "hx-trigger": "click", _ "data-bs-toggle": "modal", _ "data-bs-target": "#modals-here", _ "class": "btn btn-primary text-uppercase")) _ .Text("Open Modal").up(div2).uniline
- You will see a "405 Method Not Allowed" page if you try to browse the page (GET method)