反转Scala播放路线

时间:2013-11-05 19:06:07

标签: scala playframework

我没有在Scala播放中改变我的路线,因为在我的视图中包含了一个bootstrap css文件。

这是我到bootstrap文件的链接:

  <link href="@routes.Assets.at("bootstrap/dist/css/bootstrap.css")" rel="stylesheet"/>

这是我的路线:

GET     /assets/*file controllers.Assets.at(path="public", file)

这是我的文件路径:

/public/bootstrap/dist/css$ ls
bootstrap.css      bootstrap-theme.css      index.html
bootstrap.min.css  bootstrap-theme.min.css  index.html.1

我在这里做错了什么?

谢谢!

1 个答案:

答案 0 :(得分:1)

似乎你的路线没有有效的斜线,它应该是

GET     /assets/*file               controllers.Assets.at(path="/public", file)