add routes

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")

Note: After adding the above plugin to plugins.sbt, run the below commands to rebuild idea and resolve the issue:

activator clean
activator idea