【发布时间】:2011-12-05 11:45:11
【问题描述】:
我有一个名为index.html 的静态文件,我想在有人请求/ 时提供该文件。通常是网络服务器do this by default,但 Compojure 没有。当有人请求 / 时,如何让 Compojure 服务 index.html?
这是我用于静态目录的代码:
; match anything in the static dir at resources/public
(route/resources "/")
【问题讨论】: