Write the example code again, except add support to static files in the /public directory. Also add support for not having a .html extension at the ending of the URL.