cog icon indicating copy to clipboard operation
cog copied to clipboard

feature request: able to serve static files

Open harshzalavadiya opened this issue 3 years ago • 1 comments
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

harshzalavadiya avatar Jul 28 '22 16:07 harshzalavadiya

Thanks for the suggestion! Related: #648 #649

bfirsh avatar Jul 28 '22 16:07 bfirsh