Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions core/play/src/main/scala/play/api/routing/Router.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ trait Router:
*/
def routes: Router.Routes

/**
* Get a new router that routes requests to `s"$prefix/$path"` in the same way this router routes requests
* to `path`.
*
* @return
* the prefixed router
*/
def withPrefix(prefix: String): Router

/**
* An alternative syntax for `withPrefix`. For example:
*
* {{{
* val router = "/bar" /: barRouter
* }}}
*/
final def /:(prefix: String): Router = withPrefix(prefix)

/**
* A lifted version of the routes partial function.
*/
Expand All @@ -48,7 +30,6 @@ trait Router:
* `router`
*/
final def orElse(other: Router): Router = new Router:
def withPrefix(prefix: String): Router = self.withPrefix(prefix).orElse(other.withPrefix(prefix))
def routes: Routes = self.routes.orElse(other.routes)

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ final class Routes(
@dep.ident: @dep.clazz,}
) extends GeneratedRouter @ob

final val prefix: String = "/"
def withPrefix(addPrefix: String): Routes = ???

@for((rules, pathIndex) <- pathRules.map(_._2).zipWithIndex){
@for((dep, index) <- rules.zipWithIndex){@dep.rule match {
case route @ Route(verb, path, call, comments, modifiers) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ final class Routes(
Feed_14: controllers.Feed,
) extends GeneratedRouter {

final val prefix: String = "/"
def withPrefix(addPrefix: String): Routes = ???



// @LINE:95
Expand Down