iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

where: 'server' -> Route not found #1545

Closed lugaru90 closed 8 years ago

lugaru90 commented 8 years ago

Hey all,

i've got a Strange Problem. Using a Simple route where: 'server' and the response is a 404 Error. Any Ideas?

Code:

Router.route('/shop/confirmPayment',
  function() {
    this.response.statusCode = 200;
    this.response.end("success");
  },
  {where: 'server'});
Batistleman commented 8 years ago

In what file is this code located? Please make sure it's available for the server.

lugaru90 commented 8 years ago

Damn it, always had the router.js inside the lib Folder. This time i've used a Template and the router.js was inside the Client. Thanks a lot Batistleman!