aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Add support for user-specified route template #307

Closed robertmiles3 closed 6 years ago

robertmiles3 commented 6 years ago

For OCD-ish people like myself, I'd love to be able to change the route template. I already have "api" in my subdomain, so it's a bummer to also see it in the path (ie: /api/webhooks/incoming) as well.

I see from here that it is currently hard-coded given "no requirement for user-specified route templates".

Is this a feature that could be added? Maybe something like...

services.AddMvc()
    .AddWebHooks(options =>
    {
        options.RouteTemplate = "/webhooks/incoming/";
    })
    .AddGitHubWebHooks();
dougbu commented 6 years ago

We have no plans to implement this feature at this time. If our priorities change in the future, we may reconsider.