Replies: 1 comment 1 reply
-
By getting class HomeController @Inject()(routesProvider: RoutesProvider) extends BaseController {
def index(): Action[AnyContent] = Action {
routesProvider.get.documentation.foreach { case (httpMethod, pathPattern, controllerMethodInvocation) =>
println(httpMethod, pathPattern, controllerMethodInvocation)
}
Ok(views.html.index())
}
} Result:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If it is available, it can be processed in advance, such as router rule processing or saving rules to a database for authorization,Or you can automatically generate API documents.
Beta Was this translation helpful? Give feedback.
All reactions