mirror of
https://github.com/corda/corda.git
synced 2025-02-21 17:56:54 +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
|
@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 {
|
fun serveWeb(@PathParam("filepath") filepath: String) : Response {
|
||||||
try {
|
try {
|
||||||
val resourcePath = if(filepath == "") { "index.html" } else { filepath }
|
val resourcePath = if(filepath == "") { "index.html" } else { filepath }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user