2
express-stormpath内の異なるグループに異なる登録ページを作成したいと考えています。例:エクスプレスストームパス内のグループに異なる登録ページを作成するには
router.get('/new', stormpath.groupsRequired(['Merchants']), function(req, res){
//this would render a signup for merchants if a merchant wasn't signed in
});
router.get('/new', stormpath.groupsRequired(['customers']), function(req, res){
//this would render a signup for customer if a customer wasn't signed in
});
私はドキュメントを読んだことがありますが、これはどうしたらいいですか?
二つの異なるディレクトリの異なるレジスタページを提供する方法はありますか?私。マーチャントディレクトリに保存されているアカウントの登録ページと、顧客ディレクトリのアカウント用の登録ページ – user7428822
あなた自身でそれを行う必要があります。ただし、これはドキュメントに記載されています。https://docs.stormpath.com/nodejs/express/latest/templates.html – rdegges