- [API] Segregated API files, Implemented spells-list, component that calls the API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user