first commit

This commit is contained in:
2020-02-07 17:55:43 +01:00
commit 06b2078e4d
18 changed files with 2818 additions and 0 deletions
View File
+16
View File
@@ -0,0 +1,16 @@
const db = require('../data/dbConfig');
module.exports = {
getCountries,
getCountryByName,
};
function getCountries() {
return db('countries')
}
function getCountryByName(name) {
return db('countries')
.where({ name })
.first()
}
View File