Merge pull request #221 from eordano/fix/enablePlugin
only add routes for email store if plugin enabled
This commit is contained in:
commit
92a868bc21
@ -52,11 +52,13 @@ module.exports = function(app) {
|
|||||||
app.get(apiPrefix + '/currency', currency.index);
|
app.get(apiPrefix + '/currency', currency.index);
|
||||||
|
|
||||||
// Email store plugin
|
// Email store plugin
|
||||||
var emailPlugin = require('../plugins/emailstore');
|
if (config.enableEmailstore) {
|
||||||
app.post(apiPrefix + '/email/register', emailPlugin.post);
|
var emailPlugin = require('../plugins/emailstore');
|
||||||
app.post(apiPrefix + '/email/validate', emailPlugin.validate);
|
app.post(apiPrefix + '/email/register', emailPlugin.post);
|
||||||
app.get(apiPrefix + '/email/retrieve/:email', emailPlugin.get);
|
app.post(apiPrefix + '/email/validate', emailPlugin.validate);
|
||||||
app.get(apiPrefix + '/email/validate', emailPlugin.validate);
|
app.get(apiPrefix + '/email/retrieve/:email', emailPlugin.get);
|
||||||
|
app.get(apiPrefix + '/email/validate', emailPlugin.validate);
|
||||||
|
}
|
||||||
|
|
||||||
//Home route
|
//Home route
|
||||||
var index = require('../app/controllers/index');
|
var index = require('../app/controllers/index');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user