projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add (real) Football chess
[vchess.git]
/
server
/
models
/
Variant.js
diff --git
a/server/models/Variant.js
b/server/models/Variant.js
index
85abf5a
..
d01d2a2
100644
(file)
--- a/
server/models/Variant.js
+++ b/
server/models/Variant.js
@@
-8,6
+8,7
@@
const db = require("../utils/database");
*/
const VariantModel = {
+
getAll: function(callback) {
db.serialize(function() {
const query =
@@
-15,9
+16,10
@@
const VariantModel = {
"FROM Variants";
db.all(query, callback);
});
- }
,
+ }
//create, update, delete: directly in DB
-}
+
+};
module.exports = VariantModel;