私はこのようなルートを持っています -
server.get({
url : '/reguser/:useremail',
name : 'pre-register-user'
}, function(req, res, next) {
return next();
}, function sendResult(req, res, next) {
var user = { 'email' : req.params.useremail }
// Create a new user on the DB
res.contentType = 'application/json';
// rest of the processing.
}
/prereg/someone%40someemail.com で呼び出された場合に機能します。しかし、/prereg/someone@someemail.com を取得すると、まったく処理されません。私はフロントで Nginx を使用しており、Web ページが URL エンコードされた文字列を %40 で送信しているにもかかわらず、%40 を @ に置き換えます。
これから抜け出す方法はありますか?