Play: extract the WebJar contents to a certain path

174 views Asked by At

According to the WebJars documentation

Play automatically extracts the WebJar contents and makes them available via the Assets controller.

Is there a way to change that?

Instead of /assets/lib/bootstrap/css/bootstrap.css I would need /myProject/assets/lib/bootstrap/css/bootstrap.css

1

There are 1 answers

1
James Ward On BEST ANSWER

If you just want to change the prefix in the URL route, then you can change your static asset controller's route in the conf/routes file.