2013-04-30 27 views

回答

4

您可以使用類似meteor router之類的東西。還有另一個名爲collections api的軟件包,但在用戶的這種情況下可能無用。但它會幫助你與其他收藏。

一起來看流星路由器,您可以創建一個服務器端的路線如

服務器端JS

Meteor.Router.add('/hostname/create-account/username', 'POST', function() { 
    //this.params contains all the POST fields 
    return "OK"; 
}); 

請記住,您需要使用meteoriteaccess these community packages(如流星路由器)

+1

謝謝,它的作品。 – waitingkuo 2013-04-30 10:12:15

相關問題