tuplejump / play-yeoman

Play + Yeoman integration sbt and play plugins
Apache License 2.0
237 stars 58 forks source link

Remove `../ui/..` from url #45

Closed OliverKK closed 10 years ago

OliverKK commented 10 years ago

Is there a way to avoid using the ui in the url? Doesn't it look a little unnecessary?

scottt732 commented 10 years ago

I was able to do this by tweaking conf/routes as follows:

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

GET     /                           com.tuplejump.playYeoman.Yeoman.index
->      /                           yeoman.Routes
milliondreams commented 10 years ago

@scottt732 Thanks for answering that one!

@OliverKK That is the correct way of handling your requirement.

OliverKK commented 10 years ago

@scottt732 Thank you. This is very useful.