Fork me on GitHub

If you prefer a "HTML file": - Be sure that resources is in your :paths on deps.edn - Add a ::http/resource-path "public" (do not remove file-path !!! ) - create resources/public/index.html with your HTML - You will not need my-spa handler function nor routes change - Connect to localhost:8080/index.html


Does anyone know why it's necessary to use a var to reference your routes when setting up pedestal in order for changes to the routes to be picked up properly? Example of var being used here:


@dannyfreeman because otherwise, the current value of the routes gets baked into the service-map

👍 3