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

ConfigureRouting Service is missing in RC2 #1459

Closed
zenixgrace opened this issue May 18, 2016 · 3 comments
Closed

ConfigureRouting Service is missing in RC2 #1459

zenixgrace opened this issue May 18, 2016 · 3 comments

Comments

@zenixgrace
Copy link

Hi Teams,

is ConfigureRouting service missing / deprecate in RC2?
I can't find any doc about this change.

I need to use AppendTrailingSlash option and LowercaseUrls option.
it's available in RC1 #

@Muchiachio
Copy link
Contributor

You can use Configure method on IServiceCollection to change routing configuration.

services.Configure<RouteOptions>(options =>
    {
        options.AppendTrailingSlash = true;
        options.LowercaseUrls = true;
    });

@zenixgrace
Copy link
Author

@Muchiachio nice.. big thanks

@rynowak
Copy link
Member

rynowak commented May 18, 2016

In addition all of the various AddXyz(...) methods now take an Action<TOptions> where there's something to do. So AddRouting(options => ...) works as well

@glennc glennc closed this as completed May 18, 2016
natemcmaster pushed a commit that referenced this issue Oct 17, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants