9 lines
185 B
JavaScript
9 lines
185 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import { check } from 'meteor/check';
|
|
|
|
Meteor.methods({
|
|
"newGame"({ name }) {
|
|
check(name, String);
|
|
console.log("name", name);
|
|
},
|
|
});
|