|
@ -46,7 +46,7 @@ routes.get('/recentSVG', (request, result) => |
|
|
'Cache-Control': 'no-cache', |
|
|
'Cache-Control': 'no-cache', |
|
|
'Vary': 'Accept-Encoding'}); |
|
|
'Vary': 'Accept-Encoding'}); |
|
|
var res = `
|
|
|
var res = `
|
|
|
<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
|
|
|
|
|
|
|
|
<svg width="450" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
|
|
<g> |
|
|
<g> |
|
|
<title>background</title> |
|
|
<title>background</title> |
|
|
<rect x="-1" y="-1" width="808" height="202" id="canvas_background" fill="#fff"/> |
|
|
<rect x="-1" y="-1" width="808" height="202" id="canvas_background" fill="#fff"/> |
|
@ -77,6 +77,7 @@ routes.get('/recentSVG', (request, result) => |
|
|
result.end(); |
|
|
result.end(); |
|
|
}).catch((err)=> |
|
|
}).catch((err)=> |
|
|
{ |
|
|
{ |
|
|
|
|
|
console.log(err); |
|
|
result.status(404).json({error: 404}).end(); |
|
|
result.status(404).json({error: 404}).end(); |
|
|
}) |
|
|
}) |
|
|
}); |
|
|
}); |
|
|