aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-15 20:24:41 +0100
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-15 20:24:41 +0100
commit53bfe0e77de6b3d9e8bb4b9740c8fbe009b145c5 (patch)
treec961c2c0f64076273938ad53ee2fc9aea7774e9f /Jellyfin.Api
parentd0bfb56d2ef0607b10d83706f7ec76fc16bb4cf9 (diff)
Changes as requested
Diffstat (limited to 'Jellyfin.Api')
-rw-r--r--Jellyfin.Api/Controllers/TestsController.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/Jellyfin.Api/Controllers/TestsController.cs b/Jellyfin.Api/Controllers/TestsController.cs
deleted file mode 100644
index 1d1e1899fd..0000000000
--- a/Jellyfin.Api/Controllers/TestsController.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using Jellyfin.Api.Constants;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc;
-
-namespace Jellyfin.Api.Controllers
-{
- /// <summary>
- /// Controller for testing.
- /// </summary>
- public class TestsController : BaseJellyfinApiController
- {
- /// <summary>
- /// Tests the url decoding.
- /// </summary>
- /// <param name="params">Parameters to echo back in the response.</param>
- /// <returns>An <see cref="OkResult"/>.</returns>
- /// <response code="200">Information retrieved.</response>
- [HttpGet("UrlDecode")]
- [ProducesResponseType(StatusCodes.Status200OK)]
- public ContentResult TestUrlDecoding([FromQuery]Dictionary<string, string>? @params = null)
- {
- return new ContentResult()
- {
- Content = (@params != null && @params.Count > 0)
- ? string.Join("&", @params.Select(x => x.Key + "=" + x.Value))
- : string.Empty,
- ContentType = "text/plain; charset=utf-8",
- StatusCode = 200
- };
- }
- }
-}