mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
JSON can now be served by static server.
This commit is contained in:
parent
4a1521f0e2
commit
1155c1d8ad
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user