Simplifying the HTTP verticle code
the static HTML, CSS and JavaScript content to bootstrap applications in web browsers, and
Of course building a version that leverages JWT tokens and authentication makes sense for a real-world deployments, but now that we have covered these features we would rather focus on the essential bits in this part of the guide.
As an example, the method implementation code is now:
Exposed routes
The front application static assets are being served from /app
, and we redirect requests to to the /app/index.html
static file:
Disabling caching is useful in development.
Last but not least, we anticipate that the application will need the backend to render Markdown to HTML, so we offer a HTTP POST endpoint for this purpose: