importExpressletapp=express()app.views.register(StencilViewEngine())<!--ここを追加-->app.views.register(JsonView())app.get("/assets/:file+",action:StaticAction(path:"public",param:"file"))app.get("/"){(request:Request<AnyContent>)->Action<AnyContent>inreturnAction<AnyContent>.render("index",context:["hello":"Hello,","swift":"Swift","express":"Express!"])}<!--ここを追加-->app.post("/:param"){(request:Request<AnyContent>)->Action<AnyContent>inletresponse=["status":"ok","description":"Post Request Succesfully"]returnAction.render(JsonView.name,context:response)}app.listen(9999).onSuccess{serverinprint("Express was successfully launched on port",server.port)}app.run()