10 lines
185 B
JavaScript
10 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);
|
||
|
},
|
||
|
});
|