JSON can now be served by static server.

This commit is contained in:
Clinton Alexander 2016-07-13 15:16:35 +01:00
parent 4a1521f0e2
commit 1155c1d8ad

View File

@ -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 }