Skip to content

Commit

Permalink
fix Scala 3 compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Nov 1, 2023
1 parent 41af609 commit 4665c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/controllers/ApiHelpController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import scala.jdk.CollectionConverters._
class ApiHelpController @Inject() (components: ControllerComponents, val swaggerPlugin: SwaggerPlugin)
extends AbstractController(components) with SwaggerBaseApiController {

def getResources = Action { implicit request =>
def getResources: Action[AnyContent] = Action { implicit request =>
val host: String = swaggerPlugin.config.host
val resourceListing: Swagger = getResourceListing(host)
respond(resourceListing)
}

def getResource(path: String) = Action { implicit request =>
def getResource(path: String): Action[AnyContent] = Action { implicit request =>
val host: String = swaggerPlugin.config.host
val apiListing: Swagger = getApiListing(path, host)
respond(apiListing)
Expand Down

0 comments on commit 4665c95

Please sign in to comment.