From 1155c1d8ad9603b068a1433c4534eecf0361c1ca Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Wed, 13 Jul 2016 15:16:35 +0100 Subject: [PATCH] JSON can now be served by static server. --- src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt b/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt index 47d9779b4e..cdca9a27a6 100644 --- a/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt +++ b/src/main/kotlin/com/r3corda/demos/api/InterestRateSwapAPI.kt @@ -115,7 +115,7 @@ class InterestRateSwapAPI(val services: ServiceHub) { } @GET - @Path("web/{filepath: (.*(.html|.css|.js|.png|.jpg|.gif|ttf|woff|woff2))?}") + @Path("web/{filepath: (.*(.html|.css|.js|.png|.jpg|.gif|.json|ttf|woff|woff2))?}") fun serveWeb(@PathParam("filepath") filepath: String) : Response { try { val resourcePath = if(filepath == "") { "index.html" } else { filepath }