Make REST API on Meteor+React without other packages
问题 For example, when the path is /json/users/4 meteor app must return json something like { id: 4, name: 'Alex' } I'm using reactrouter:react-router for client routing. I know about reactrouter:react-router-ssr , but how to use it to response raw json? And make it not conflicting with existing client routing? 回答1: I found the answer. Meteor's default Webapp package will help (doc): WebApp.connectHandlers.use("/hello", function(req, res, next) { res.writeHead(200); res.end("Hello world from: " +