@@ -4,19 +4,19 @@ import akka.actor.ActorSystem
44import akka .http .scaladsl .Http
55import akka .http .scaladsl .Http .ServerBinding
66import akka .http .scaladsl .model .StatusCodes ._
7+ import akka .http .scaladsl .model ._
78import akka .http .scaladsl .model .headers .RawHeader
89import akka .http .scaladsl .model .ws .{Message , TextMessage }
9- import akka .http .scaladsl .model ._
1010import akka .http .scaladsl .server .Directives .{as , entity , extractClientIP , _ }
1111import akka .http .scaladsl .server .directives .RouteDirectives .reject
1212import akka .http .scaladsl .server .{ExceptionHandler , Route , UnsupportedWebSocketSubprotocolRejection }
1313import akka .stream .ActorMaterializer
1414import akka .stream .scaladsl .Flow
15- import de .heikoseeberger .akkahttpplayjson .PlayJsonSupport
16- import play .api .libs .json .{JsObject , JsValue , Json }
1715import ch .megard .akka .http .cors .scaladsl .CorsDirectives
1816import ch .megard .akka .http .cors .scaladsl .CorsDirectives ._
1917import com .prisma .akkautil .throttler .Throttler .ThrottlerException
18+ import de .heikoseeberger .akkahttpplayjson .PlayJsonSupport
19+ import play .api .libs .json .JsValue
2020
2121import scala .concurrent .{Await , Future }
2222
@@ -35,9 +35,10 @@ case class AkkaHttpSangriaServer(
3535)(implicit val system : ActorSystem , val materializer : ActorMaterializer )
3636 extends SangriaServer
3737 with PlayJsonSupport {
38- import scala .concurrent .duration ._
3938 import system .dispatcher
4039
40+ import scala .concurrent .duration ._
41+
4142 val routes = {
4243 handleRejections(CorsDirectives .corsRejectionHandler) {
4344 cors() {
0 commit comments