OpenDeck/sockets/getDeck.js
2021-03-08 15:27:50 +01:00

10 lines
212 B
JavaScript

const db = require("../db.json");
module.exports = socket => {
return name => {
if (!name)
name = "default";
socket.emit("getDeck", {name: name, data: db.decks[name]});
}
};