Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class ScalligraphApplicationImpl(val context: Context)

val routers: LazyMutableSeq[Router] = LazyMutableSeq[Router]
override lazy val router: Router = initCheck {
val prefix = httpConfiguration.context
routers()
.reduceOption(_ orElse _)
.getOrElse(Router.empty)
Expand All @@ -183,6 +184,7 @@ class ScalligraphApplicationImpl(val context: Context)
case _ => authAction
}
}
.withPrefix(prefix)
}

lazy val defaultAction: ActionFunction[Request, AuthenticatedRequest] = new ActionFunction[Request, AuthenticatedRequest] {
Expand Down