fix(routing) Stop defining Route in Meteor.startup

This commit is contained in:
Erik Ziegler committed 2018-07-12 12:11:05 +02:00
1 parent 3d0f9e8973
commit 781f6039fa
1 file changed
+4 -7
+4 -7
View File
@@ -1,9 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { Router } from 'meteor/iron:router';
Meteor.startup(() => {
Router.route('/login', function() {
this.layout('mainLayout', { data: {} });
this.render('userLogin');
}, { name: 'userLogin' });
});
Router.route('/login', function() {
this.layout('mainLayout', { data: {} });
this.render('userLogin');
}, { name: 'userLogin' });