OpenDeck/sockets/getDecks.js

9 lines
149 B
JavaScript
Raw Normal View History

const db = require("../db.json");
module.exports = socket => {
return () => {
socket.emit("getDecks", Object.keys(db.decks));
}
};