2012-04-08 62 views
0

我正在研究一個使用everyauth(技術上說mongooseAuth)的小型NodeJS應用程序來與Twitter進行通信來驗證用戶身份。我已經根據mongooseAuth的說明以及用戶模型設置了UserSchema,並在app.configure部分包含了app.use(mongooseAuth.middleware())。爲什麼我的NodeJS路由中缺少「auth/twitter」?

當我點擊「登錄與Twitter」的按鈕,它會嘗試去http://localhost:3000/auth/twitter,但是這條路線是缺少,根據錯誤顯示:

Cannot GET /auth/twitter 

至於我可以告訴大家,這個網址應該由everyauth/mongooseAuth提供。我尋找答案,但迄今沒有任何幫助。這個程序使用快遞。想法?我是NodeJS的新手。

回答