Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BasePath override config option for C# Controller #2439

Merged
merged 6 commits into from Oct 8, 2019

Conversation

@basvandrongelen
Copy link
Contributor

commented Oct 1, 2019

Hi Rico,

I've added a basepath config for the c# controller generator. We need this so we can manipulate the route prefix as the virtual directory is part of this base path and we don't want this in our routes.
I think it might also be handy for more users, for example when:

  • You have a virtual directory that you don't want in your routes.
  • You have a difference in the paths of your environments.
basvandrongelen and others added 4 commits Jun 6, 2019
Merge from upstream
Get the fork up-to-date
 Please enter a commit message to explain why this merge is necessary,
To separate config from code-gen, a base path config variable is added so the base path can be overridden.

This can be useful when:

  - You have a virtual directory that you don't want in your routes.

  - You have a difference in the paths of your environments.
Bas van Drongelen added 2 commits Oct 2, 2019
Change BasePath evalutation to use string.IsNullOrEmpty.
Change BasePath evalutation to use string.IsNullOrEmpty.
@gillesdb

This comment has been minimized.

Copy link
Contributor

commented Oct 8, 2019

Can this change be included in the next release? Thank you in advance!

@RicoSuter RicoSuter merged commit b9780fe into RicoSuter:master Oct 8, 2019
1 check passed
1 check passed
NSwag - CI Build #20191002.2 succeeded
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.