- Implemented security and headers modules for API

This commit is contained in:
Alexis
2020-05-15 20:31:39 +02:00
parent a408a9cdd3
commit 449c07f013
4 changed files with 174 additions and 2 deletions

View File

@@ -10,8 +10,7 @@ const db = connection.db
const getSpells = () => {
let fetchSpellsData = new Promise((resolve, reject) => {
let query =
"SELECT DISTINCT * FROM spell"
let query = "SELECT DISTINCT * FROM spell"
db.query(query, async (err, result) => {
if (err) { return reject }