swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Play 2.5 module seems to interfere with loading assets #109

Open boosh opened 7 years ago

boosh commented 7 years ago

I have this in my main routes file:

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)

And in a template:

<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">

When the swagger-play module is enabled and I access the path mapped to controllers.ApiHelpController.getResources I get a compilation error: value Assets is not a member of object controllers.routes

If I disable the module (and disable that route of course) the error goes away. It seems that the plugin is interfering with this controllers.Assets thing.