Static page routing in Sinatra (Ruby)

前端 未结 6 843
醉酒成梦
醉酒成梦 2021-02-13 13:39

You can serve static files with Sinatra by placing them in public/ (by default) -- I have an index.html in there at the moment, but how can I make the

6条回答
  •  迷失自我
    2021-02-13 14:11

    There is a gem "sinatra-index" to solve this problem.

    https://github.com/elitheeli/sinatra-index

提交回复
热议问题