I fixed up the admin section so that the URLs in my single page application can work when refreshed. I also organize it as Express middleware so that the admin section can live in a separate file.
Code here: https://github.com/jesseskinner/codingwithjesse.com/tree/part16