When using endpointDirectory includes endpoint name#910
When using endpointDirectory includes endpoint name#910adamk33n3r wants to merge 1 commit intoangular-fullstack:masterfrom
Conversation
|
Just to check.. The other day I tried to generate an endpoint at
Is this change intended to correct this behaviour, or is this for something else? |
|
This is for something different. I've never encountered your issue though. What command did you run exactly? |
|
Ah, ok.. No worries then. I ran Anyways, I don't really want to derail this PR, so I'll try reproduce it in a clean project and post a new report about it. This was the closest I found when searching this repo for more info, so I thought I'd ask just in case. :) |
|
Ah. So actually you need to run the generator with just the endpoint name as a parameter like 'detail'. Then when the command is run it asks you for dir and that's when you put 'api/company' or something like that. No worries about derailing. Always happy to help people. |
|
Thanks for the suggestion, that is actually what I ended up with anyway; but the endpoint generator only prompts for the endpoint URL, not the folder path... It works this way, but I'm (a software tester by trade and) too pedantic to settle for simply "it works". Anyways, I posted a more detailed query at #934 to see if I get some more clarification on this. |
|
@adamk33n3r do you think this change could be accomplished with: var dest = (this.config.get('endpointDirectory') || 'server/api/') + this.name; |
|
I'm going to close this PR as this functionality is covered in #1122 (along with others). Please feel free to discuss the implementation there. |
This adds the endpoint name after the endpointDirectory config option if supplied.