From 16bf4871e4aaa51e1282752a7fb3c1bd401e8b15 Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Wed, 27 May 2015 10:00:06 -0300 Subject: [PATCH] correction to generate endpoint with 'endpointDirectory' --- endpoint/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoint/index.js b/endpoint/index.js index 2b3d7eb22..23087f207 100644 --- a/endpoint/index.js +++ b/endpoint/index.js @@ -70,7 +70,7 @@ Generator.prototype.registerEndpoint = function registerEndpoint() { }; Generator.prototype.createFiles = function createFiles() { - var dest = this.config.get('endpointDirectory') || 'server/api/' + this.name; + var dest = this.config.get('endpointDirectory') + this.name || 'server/api/' + this.name; this.sourceRoot(path.join(__dirname, './templates')); ngUtil.processDirectory(this, '.', dest); };