diff options
| author | crobibero <cody@robibe.ro> | 2020-06-27 10:50:44 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-27 10:50:44 -0600 |
| commit | 73bcda7eac6d0785745179fe4b7f58b6bc4ec488 (patch) | |
| tree | d1d6841d78432b95f1e2342e5632d5feb75ae1ee /Jellyfin.Api/Controllers/ApiKeyController.cs | |
| parent | 90c01327aa3ea52a2b9a47f00ede9d887399e3d9 (diff) | |
Make all optional strings nullable
Diffstat (limited to 'Jellyfin.Api/Controllers/ApiKeyController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ApiKeyController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/ApiKeyController.cs b/Jellyfin.Api/Controllers/ApiKeyController.cs index ed521c1fc..fef4d7262 100644 --- a/Jellyfin.Api/Controllers/ApiKeyController.cs +++ b/Jellyfin.Api/Controllers/ApiKeyController.cs @@ -65,7 +65,7 @@ namespace Jellyfin.Api.Controllers [HttpPost("Keys")] [Authorize(Policy = Policies.RequiresElevation)] [ProducesResponseType(StatusCodes.Status204NoContent)] - public ActionResult CreateKey([FromQuery, Required] string app) + public ActionResult CreateKey([FromQuery, Required] string? app) { _authRepo.Create(new AuthenticationInfo { @@ -88,7 +88,7 @@ namespace Jellyfin.Api.Controllers [HttpDelete("Keys/{key}")] [Authorize(Policy = Policies.RequiresElevation)] [ProducesResponseType(StatusCodes.Status204NoContent)] - public ActionResult RevokeKey([FromRoute] string key) + public ActionResult RevokeKey([FromRoute] string? key) { _sessionManager.RevokeToken(key); return NoContent(); |
