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

Allow plugins to define their own api endpoints #3871

Merged
merged 6 commits into from
Aug 31, 2020

Conversation

daullmer
Copy link
Member

@daullmer daullmer commented Aug 10, 2020

Changes
To allow plugins to register their own ASP.NET Web Api endpoints, we need to register each assembly in the MvcBuilder.
However, this is currently not possible, as applicationHost.Plugins doesn't contain the plugins. They get loaded after Startup.ConfigureServices ran.
Can we load the plugins earlier? I tried to move some things around (calling this line before calling this line) but InitializeServices needs the appHost.ServiceProvider which we get from the WebHostBuilder.

@daullmer daullmer changed the title [WIP] Allow plugins to define their own api endpoints Allow plugins to define their own api endpoints Aug 11, 2020
@daullmer daullmer marked this pull request as ready for review August 11, 2020 16:39
@daullmer daullmer requested a review from cvium August 31, 2020 15:56
@Bond-009 Bond-009 merged commit 9514264 into jellyfin:master Aug 31, 2020
@daullmer daullmer deleted the plugins-api branch August 31, 2020 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants