Skip to content

Commit

Permalink
FIX build
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Dec 6, 2023
1 parent 6016ddc commit e9d556f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions daikoku/app/controllers/AdminApiController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package fr.maif.otoroshi.daikoku.ctrls

import org.apache.pekko.http.scaladsl.util.FastFuture
import org.apache.pekko.stream.Materializer
import org.apache.pekko.stream.scaladsl.Source
import org.apache.pekko.util.ByteString
import cats.implicits._
import fr.maif.otoroshi.daikoku.actions.{DaikokuAction, DaikokuActionContext}
Expand All @@ -15,6 +14,7 @@ import fr.maif.otoroshi.daikoku.logger.AppLogger
import fr.maif.otoroshi.daikoku.utils.OtoroshiClient
import fr.maif.otoroshi.daikoku.utils.admin._
import io.vertx.pgclient.PgPool
import org.apache.pekko.stream.scaladsl.Source
import play.api.http.HttpEntity
import play.api.libs.json.{JsArray, JsObject, JsValue, Json}
import play.api.libs.streams.Accumulator
Expand All @@ -23,7 +23,6 @@ import storage.drivers.postgres.PostgresDataStore
import storage.{DataStore, Repo}

import scala.concurrent.ExecutionContext
import scala.io.Source
import scala.util.{Failure, Success, Using}

class StateController(DaikokuAction: DaikokuAction,
Expand Down Expand Up @@ -617,7 +616,7 @@ class AdminApiSwaggerController(
ctrl1.pathForIntegrationApi()

def swagger() = Action {
Using(Source.fromResource("public/swaggers/admin-api-openapi.json")) {
Using(scala.io.Source.fromResource("public/swaggers/admin-api-openapi.json")) {
source =>
source.mkString
} match {
Expand Down

0 comments on commit e9d556f

Please sign in to comment.