cog
cog copied to clipboard
feature request: able to serve static files
trafficstars
Thanks for making cog it makes deploying models very easy
wgen cog model gets generated it automatically creates openapi endpoints, can we add static rule that if there's public directory given that while building all files gets copied fastify can serve if public directory is present for example /public/index.html can be accessible at localhost:5000/public/index.html
or even better except openapi.json and /docs everything will be inside public directly will be accessible as url
this way from simple forms to complex demo applications can be designed and hosted instead of running another container just to host a static file
Thanks for the suggestion! Related: #648 #649