How do I access Request Parameters in Meteor?

后端 未结 5 557
天命终不由人
天命终不由人 2020-12-14 02:34

I am planning to use Meteor for a realtime logging application for various My requirement is pretty simple, I will pass a log Message as request Parameter ( POST Or GET) f

5条回答
  •  孤街浪徒
    2020-12-14 03:02

    As things stand, there isn't support for server side routing or specific actions on the server side when URLs are hit. So it's not easy to do what you want. Here are some suggestions.

    1. You can probably achieve what you want by borrowing techniques that are used by the oauth2 package on the auth branch: https://github.com/meteor/meteor/blob/auth/packages/accounts-oauth2-helper/oauth2_server.js#L100-109

      However this isn't really supported so I'm not certain it's a good idea.

    2. Your other applications could actually update the collections using DDP. This is probably easier than it sounds.

    3. You could use an intermediate application which accepts POST/GET requests and talks to your meteor server using DDP. This is probably the technically easiest thing to do.

提交回复
热议问题