Unfortunately, AFAIK, there is no way to magically turn on a switch that will do what you want. Fortunately, there is a workaround inferior to IMHO, but its the best you can do.
GET / [aA] [cC] [cC] [eE] [sS] [sS] .....
EDIT: I did the following that matches my specific requirement for the bottom of the body is only the first part of the URL. Thus, GET / AbCdE / XyZ will become GET / abcde / XyZ, and if it has an action in the routes, then it will be processed accordingly.
override def onRouteRequest( request: RequestHeader ) = { val path = request.path val split = path.split( "/" ).toList val lowerCasePath = split match{ case ""::Nil => ""::Nil case ""::x::y => ""::x.toLowerCase::y } logger.error( lowerCasePath.toString ) super.onRouteRequest( request.copy( path = lowerCasePath.mkString( "/" ) ) ) }
EDIT See here: https://jazzy.id.au/2013/05/08/advanced_routing_in_play_framework.html
source share