I'm looking for a way to render a page statically in Express that involves using a dynamic URL.
For example,
In my forum, users create posts and each post has its unique URL that shows the post when clicked:
localhost:8080/posts/postNumber
Currently, I have a static HTML page at localhost:8080/posts/.
I want the dynamic links that users click to display the content of the static page at localhost:8080/posts/, but still show the original dynamic URL localhost:8080/posts/postNumber, so I can use the post number with an AJAX request.
Is there a way to achieve this without resorting to dynamic rendering as I am attempting?