- [API] Segregated API files, Implemented spells-list, component that calls the API

This commit is contained in:
Alexis
2020-04-06 16:39:55 +02:00
parent 37f4913d3e
commit 042c205ce4
11 changed files with 169 additions and 29 deletions

View File

@@ -92,7 +92,7 @@ router
getSpells(req.query)
.then(v => {
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify({spells : v}))
res.end(JSON.stringify(v))
})
.catch(err => {
console.log(err)