feature/Tweak endpoint root v5.1.0

This commit is contained in:
Marko Milić 2023-05-17 17:33:15 +02:00
parent 0b663ed183
commit 137b9b8fdd

View File

@ -77,9 +77,12 @@ trait APIMethods510 {
def root (apiVersion : ApiVersion, apiVersionStatus: String) : OBPEndpoint = {
case (Nil | "root" :: Nil) JsonGet _ => {
cc => Future {
JSONFactory510.getApiInfoJSON(apiVersion,apiVersionStatus) -> HttpCode.`200`(cc.callContext)
}
cc =>
for {
_ <- Future() // Just start async call
} yield {
(JSONFactory510.getApiInfoJSON(apiVersion,apiVersionStatus), HttpCode.`200`(cc.callContext))
}
}
}