Play reverse routing 2.1-RC1 without compiling

Updated to play 2.1-RC1 and there seems to be problems with reverse routing In

routes.ControlPanel.CPanel.index 

Compilation error : the value of the ControlPanel is not a member of the object controllers .ControlPanel.routes

Import also generates a warning

 import controllers.routes 

imported "routes" are permanently hidden by the definition of object routes in the ControlPanel package

Everything works fine with 2.0.4. My control structure looks like this:

  -- app -- controllers -- ControlPanel --CPanel.scala 

Cannot find anything in Migration Guide

+4
source share
1 answer
 ControlPanel.routes.CPanel.index 

solves it

+4
source

Source: https://habr.com/ru/post/1447463/


All Articles