Route to static file in Play! 2.0

后端 未结 9 1758
甜味超标
甜味超标 2021-01-30 14:05

I\'m trying to make a route to a specific static file but everything I\'m trying ends with an error.

I\'ve made 3 different attempts:

1.

GET /fil         


        
9条回答
  •  攒了一身酷
    2021-01-30 14:22

    I was experiencing the same issue while I was trying to configure some additional css. It worked with this syntax in the "routes" file

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

提交回复
热议问题