How to respond server-side to routes using Meteor and Iron-Router?

后端 未结 4 1520
无人共我
无人共我 2021-01-27 04:34

I\'m sending a file from client-side to server side using XHR:

$(document).on(\'drop\', function(dropEvent) {
    dropEvent.preventDefault();
    _.each(dropEven         


        
4条回答
  •  故里飘歌
    2021-01-27 05:11

    Meteor Router (now deprecated) has server side routing support:

    Meteor.Router.add('/upload', 'POST', function() {
      // do stuff
    });
    

提交回复
热议问题