mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:16:53 +00:00
feature/Tweak endpoint root v5.1.0
This commit is contained in:
parent
0b663ed183
commit
137b9b8fdd
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user