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