Browse Source

Fixed width of svg image

pull/102/head
jrtechs 3 years ago
parent
commit
dd40629269
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routes/api/index.js

+ 2
- 1
routes/api/index.js View File

@ -46,7 +46,7 @@ routes.get('/recentSVG', (request, result) =>
'Cache-Control': 'no-cache',
'Vary': 'Accept-Encoding'});
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>
<title>background</title>
<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();
}).catch((err)=>
{
console.log(err);
result.status(404).json({error: 404}).end();
})
});

Loading…
Cancel
Save