ファイルを/upload
フォルダにアップロードしてから、次のように自分のファイルに直接アクセスしたい:
http://localhost/upload/xxx.jpg
以下のようにルートを追加すると:
GET /upload/*file controllers.Assets.at(path="/upload", file)
別のエラーが発生します。
not enough arguments for method at: (path: String, file: String)play.api.mvc.Call. Unspecified value parameter file.
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
次に、に変更@routes.Assets.at("stylesheets/main.css")
した後@routes.Assets.at("stylesheets/", "main.css")
、別のエラーがあります。
[MatchError: (stylesheets/,main.css) (of class scala.Tuple2)]
(path: @unchecked, file: @unchecked) match {
誰かがこのルートを手伝ってくれますか? ありがとう。