Load html and js with http4s

How can I load my statics files such index.html and app.js

do I need to add a dependency to http4s in my build.sbt
or there is a way to load with tapir ?

You can serve static content using tapir, see: Serving static content — tapir 1.x documentation

However, you’ll need to add the files to serve as resources to your application, so that might involve changing build.sbt

1 Like