diff options
| author | crobibero <cody@robibe.ro> | 2020-11-15 11:56:35 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-11-15 11:56:35 -0700 |
| commit | dae4541badc94153be7e5ae10e3278969855dd6a (patch) | |
| tree | 7d81a89d0675323f30d1557c79dcc19a9f0251b5 /Jellyfin.Api/Controllers/PackageController.cs | |
| parent | 3f313206c606662d2b5bcfa2c2a99a5c218f5ff2 (diff) | |
| parent | 7caf1662eca2ea8826f3277e8b9d5c8c782fd03d (diff) | |
Merge remote-tracking branch 'upstream/master' into dotnet-5
Diffstat (limited to 'Jellyfin.Api/Controllers/PackageController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/PackageController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/PackageController.cs b/Jellyfin.Api/Controllers/PackageController.cs index a104af4e6..1f797d6bc 100644 --- a/Jellyfin.Api/Controllers/PackageController.cs +++ b/Jellyfin.Api/Controllers/PackageController.cs @@ -154,12 +154,13 @@ namespace Jellyfin.Api.Controllers /// <param name="repositoryInfos">The list of package repositories.</param> /// <response code="204">Package repositories saved.</response> /// <returns>A <see cref="NoContentResult"/>.</returns> - [HttpOptions("Repositories")] + [HttpPost("Repositories")] [Authorize(Policy = Policies.DefaultAuthorization)] [ProducesResponseType(StatusCodes.Status204NoContent)] public ActionResult SetRepositories([FromBody] List<RepositoryInfo> repositoryInfos) { _serverConfigurationManager.Configuration.PluginRepositories = repositoryInfos; + _serverConfigurationManager.SaveConfiguration(); return NoContent(); } } |
